Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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")]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------------------------
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 };
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
SCR_JointFixedEntityClass
Definition: SCR_JointFixedEntity.c:2
SCR_JointFixedEntity
Definition: SCR_JointFixedEntity.c:11
SCR_JointBaseEntityClass
Definition: SCR_JointBaseEntity.c:2
SCR_JointBaseEntity
Definition: SCR_JointBaseEntity.c:11
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180