Garry's Mod Wiki

motionsensor

Functions related to Kinect for Windows usage in GMod.

Kinect feature doesn't work anymore

Methods

Vector, Angle, sensor motionsensor.BuildSkeleton( table translator, Player player, Angle rotation )
IMaterial motionsensor.GetColourMaterial()
Returns the depth map material.
motionsensor.GetSkeleton()
boolean motionsensor.IsActive()
Return whether a kinect is connected - and active (ie - Start has been called).
boolean motionsensor.IsAvailable()
Returns true if we have detected that there's a kinect connected to the PC
boolean motionsensor.ProcessAngle( table translator, table sensor, Vector pos, Angle ang, table special_vectors, number boneid, table v )
Angle motionsensor.ProcessAnglesTable( table translator, table sensor, Vector pos, Angle rotation )
Vector motionsensor.ProcessPositionTable( table translator, table sensor )
motionsensor.Start()
This starts access to the kinect sensor. Note that this usually freezes the game for a couple of seconds.
motionsensor.Stop()
Stops the motion capture.

Page Links


Special Pages


Wikis

?

Render Time: 25ms

DB GetPage 5
Generate Html 2
SaveChanges 9
Render Body 0
Render Sidebar 6