Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
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"
)]
2
class
SCR_JointFixedEntityClass
:
SCR_JointBaseEntityClass
3
{
4
};
5
6
//------------------------------------------------------------------------------------------------
10
//------------------------------------------------------------------------------------------------
11
class
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
};
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity::IEntity
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
IEntity::GetTransform
proto external void GetTransform(out vector mat[])
PhysicsJoint
Definition
PhysicsJoint.c:28
SCR_JointBaseEntityClass
Definition
SCR_JointBaseEntity.c:3
SCR_JointFixedEntityClass
Definition
SCR_JointFixedEntity.c:3
SCR_JointFixedEntity
Definition
SCR_JointFixedEntity.c:12
Shape
Instance of created debug visualizer.
Definition
Shape.c:14
vector
Definition
vector.c:13
ShapeType
ShapeType
Definition
ShapeType.c:13
ShapeFlags
ShapeFlags
Definition
ShapeFlags.c:13
ARGB
proto int ARGB(int a, int r, int g, int b)
scripts
Game
Entities
joints
SCR_JointFixedEntity.c
Generated by
1.17.0