Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_JointFixedEntity.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameBase/Joints", description: "Physics joint - Fixed", sizeMin: "-0.05 -0.05 -0.05", sizeMax: "0.05 0.05 0.05", color: "0 0 255 255")]
5
6//------------------------------------------------------------------------------------------------
10//------------------------------------------------------------------------------------------------
11class SCR_JointFixedEntity: SCR_JointBaseEntity
12{
13 //------------------------------------------------------------------------------------------------
14 override void DebugDisplay()
15 {
16 vector mat[4];
17 GetTransform(mat);
18 vector pos = mat[3];
19
20 vector axisVec = mat[0];
21 vector axisVec2 = mat[1];
22 vector axisVec3 = mat[2];
23 Shape.Create(ShapeType.LINE, ARGB(255, 0, 255, 0), ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, axisVec * -0.05 + pos, axisVec * 0.05 + pos);
24 Shape.Create(ShapeType.LINE, ARGB(255, 0, 255, 0), ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, axisVec2 * -0.05 + pos, axisVec2 * 0.05 + pos);
25 Shape.Create(ShapeType.LINE, ARGB(255, 0, 255, 0), ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, axisVec3 * -0.05 + pos, axisVec3 * 0.05 + pos);
26 }
27
28 //------------------------------------------------------------------------------------------------
29 override void CreateJoint(IEntity parent, IEntity child, vector jointMat1[4], vector jointMat2[4])
30 {
31 m_Joint = PhysicsJoint.CreateFixed(parent, child, jointMat1[3], jointMat2[3], m_CollisionBlocker, -1);
32 }
33};
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
proto external void GetTransform(out vector mat[])
Instance of created debug visualizer.
Definition Shape.c:14
ShapeType
Definition ShapeType.c:13
ShapeFlags
Definition ShapeFlags.c:13
proto int ARGB(int a, int r, int g, int b)