Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
Physics.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
22{
27
28 static const float KMH2MS;
29 //<! Constant for converting km/h to m/s
30 static const float MS2KMH;
31 //<! Constant for converting m/s to km/h
32 static const float STANDARD_GRAVITY;
33 static const vector VGravity;
35
37 proto external void Destroy();
42 proto external void SetInteractionLayer(int mask);
44 proto external void GetWorldTransform(out vector mat[4]);
46 proto external void GetDirectWorldTransform(out vector mat[4]);
48 proto external void SetGeomInteractionLayer(int index, int mask);
50 proto external int GetInteractionLayer();
52 proto external bool HasInteractionEnabled(int mask);
54 proto external int GetGeomInteractionLayer(int index);
62 proto external void EnableCCD(float maxMotion, float sphereCastRadius);
64 proto external void ChangeSimulationState(SimulationState simState);
66 proto external SimulationState GetSimulationState();
68 proto external vector GetCenterOfMass();
70 proto external void SetActive(ActiveState act);
72 proto external bool IsActive();
74 proto external bool IsDynamic();
76 proto external bool IsKinematic();
78 proto external bool EnableGravity(bool enable);
80 proto external void SetDamping(float linearDamping, float angularDamping);
82 proto external float GetMass();
84 proto external void SetMass(float mass);
89 proto external void SetInertiaTensorV(vector v);
91 proto external vector GetAngularVelocity();
93 proto external vector GetVelocityAt(vector pos);
95 proto external void SetSleepingTreshold(float linearTreshold, float angularTreshold);
97 proto external void SetLinearFactor(vector linearFactor);
99 proto external vector GetVelocity();
101 proto external void SetVelocity(vector velocity);
103 proto external void SetAngularVelocity(vector velocity);
107 proto external void SetTargetMatrix(vector matrix[4], float timeslice);
109 proto external void ApplyImpulse(vector impulse);
111 proto external void ApplyImpulseAt(vector pos, vector impulse);
113 proto external void ApplyForce(vector force);
115 proto external void ApplyForceAt(vector pos, vector force);
117 proto external void ApplyTorque(vector torque);
119 proto external void ClearForces();
121 proto external vector GetTotalForce();
123 proto external vector GetTotalTorque();
128 proto external void SetResponseIndex(int responseIndex);
130 proto external int GetResponseIndex();
147 proto external int AddGeom(string name, PhysicsGeom geom, vector frame[4], string material, int interactionLayer);
149 proto external int GetGeom(string name);
151 proto external int GetNumGeoms();
153 proto external bool UpdateGeometries(int interactionLayerAnd = 0xffffffff, int interactionLayerOr = 0);
155 proto external void GetGeomWorldTransform(int index, out vector mat[4]);
157 proto external void GetGeomTransform(int index, out vector mat[4]);
159 proto external void GetGeomDirectTransform(int index, out vector mat[4]);
161 proto external vector GetGeomWorldPosition(int index);
163 proto external vector GetGeomPosition(int index);
165 proto external vector GetGeomDirectPosition(int index);
167 proto external void GetGeomWorldBounds(int index, out vector min, out vector max);
169 proto external void GetGeomDirectBounds(int index, out vector min, out vector max);
171 proto external void GetGeomSurfaces(int index, notnull out array<SurfaceProperties> surfaces);
177 static proto Physics CreateStatic(notnull IEntity ent, int layerMask = 0xffffffff);
189 static proto Physics CreateStaticEx(notnull IEntity ent, PhysicsGeomDef geoms[]);
196 static proto Physics CreateDynamic(notnull IEntity ent, float mass, int layerMask = 0xffffffff);
211 static proto Physics CreateDynamicEx(notnull IEntity ent, vector centerOfMass, float mass, PhysicsGeomDef geoms[]);
217 static proto Physics CreateGhostEx(notnull IEntity ent, PhysicsGeomDef geoms[]);
218}
219
SCR_DestructibleTreeV2Class impulse
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
proto external vector GetCenterOfMass()
proto external vector GetVelocity()
proto external bool IsDynamic()
Returns true if the light is dynamic, false otherwise.
SimulationState
ActiveState
Definition ActiveState.c:16