s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams

Game Jam III

Starts Fri 4 Sep
Theme

Theme revealed when the jam starts.

£50,000
prizepool
Read more
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter