Garry's Mod Wiki

Garry's Mod Wiki

  table PhysObj:GetFrictionSnapshot()

Description

Returns the friction snapshot of this physics object. This is useful for determining if an object touching ground for example.

Returns

1 table
A table of tables containing the following data:
  • PhysObj Other - The other physics object we came in contact with
  • number EnergyAbsorbed -
  • number FrictionCoefficient -
  • number NormalForce -
  • Vector Normal - Direction of the friction event
  • Vector ContactPoint - Contact point of the friction event
  • number Material - Surface Property ID of our physics obj
  • number MaterialOther - Surface Property ID of the physics obj we came in contact with

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...