s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Components
VRTrackedObject
chevron_left Components
class
VRTrackedObject

Constructors

functionsVRTrackedObject

Properties

data_objectPoseSourcedata_objectPoseTypedata_objectTrackingTypedata_objectUseRelativeTransform

Methods

lockOnPreRenderlockOnUpdate
menu
VRTrackedObject
Updates this GameObject's transform based on a given tracked object (e.g. left controller, HMD).
class Sandbox.VR .account_tree extends Component
Sandbox.Engine

build Constructors 1

VRTrackedObject ()

data_object Properties 4

PoseSource
PoseSources
Which tracked object should we use to update the transform?
PoseType
PoseTypes
Which pose type to use (only applies to hand controllers, not the head). Grip is centered on the palm, Aim points forward for aiming/pointing.
TrackingType
TrackingTypes
Which parts of the transform should be updated? (eg. rotation, position)
UseRelativeTransform
bool
If this is checked, then the transform used will be relative to the VR anchor (rather than an absolute world position).

functions Methods 2

OnPreRender ()
OnUpdate ()

Inheritance

Component
VRTrackedObject
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter