| 1 |
{ -*- buffer-read-only: t -*- |
| 2 |
|
| 3 |
Copyright 2015-2024 Michalis Kamburelis. |
| 4 |
|
| 5 |
This file is part of "Castle Game Engine". |
| 6 |
|
| 7 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 8 |
included in this distribution, for details about the copyright. |
| 9 |
|
| 10 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
---------------------------------------------------------------------------- |
| 15 |
} |
| 16 |
|
| 17 |
{ Automatically generated node properties. |
| 18 |
|
| 19 |
Do not edit this file manually! |
| 20 |
To add new properties: |
| 21 |
- add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , |
| 22 |
- and regenerate include files by running x3d-nodes-to-pascal } |
| 23 |
|
| 24 |
{$ifdef read_interface} |
| 25 |
|
| 26 |
strict private |
| 27 |
function GetAnchorPoint: TVector3; |
| 28 |
procedure SetAnchorPoint(const Value: TVector3); |
| 29 |
function GetAxis: TVector3; |
| 30 |
procedure SetAxis(const Value: TVector3); |
| 31 |
function GetMaxAngle: Single; |
| 32 |
procedure SetMaxAngle(const Value: Single); |
| 33 |
function GetMinAngle: Single; |
| 34 |
procedure SetMinAngle(const Value: Single); |
| 35 |
function GetStopBounce: Single; |
| 36 |
procedure SetStopBounce(const Value: Single); |
| 37 |
function GetStopErrorCorrection: Single; |
| 38 |
procedure SetStopErrorCorrection(const Value: Single); |
| 39 |
public |
| 40 |
{ Create node fields and events. } |
| 41 |
procedure CreateNode; override; |
| 42 |
class function ClassX3DType: String; override; |
| 43 |
|
| 44 |
strict private FFdAnchorPoint: TSFVec3f; |
| 45 |
{ Internal wrapper for property @code(AnchorPoint). This wrapper API may change, we advise to access simpler @code(AnchorPoint) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 46 |
public property FdAnchorPoint: TSFVec3f read FFdAnchorPoint; |
| 47 |
{ } |
| 48 |
property AnchorPoint: TVector3 read GetAnchorPoint write SetAnchorPoint; |
| 49 |
|
| 50 |
strict private FFdAxis: TSFVec3f; |
| 51 |
{ Internal wrapper for property @code(Axis). This wrapper API may change, we advise to access simpler @code(Axis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 52 |
public property FdAxis: TSFVec3f read FFdAxis; |
| 53 |
{ } |
| 54 |
property Axis: TVector3 read GetAxis write SetAxis; |
| 55 |
|
| 56 |
strict private FFdMaxAngle: TSFFloat; |
| 57 |
{ Internal wrapper for property @code(MaxAngle). This wrapper API may change, we advise to access simpler @code(MaxAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 58 |
public property FdMaxAngle: TSFFloat read FFdMaxAngle; |
| 59 |
{ } |
| 60 |
property MaxAngle: Single read GetMaxAngle write SetMaxAngle; |
| 61 |
|
| 62 |
strict private FFdMinAngle: TSFFloat; |
| 63 |
{ Internal wrapper for property @code(MinAngle). This wrapper API may change, we advise to access simpler @code(MinAngle) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 64 |
public property FdMinAngle: TSFFloat read FFdMinAngle; |
| 65 |
{ } |
| 66 |
property MinAngle: Single read GetMinAngle write SetMinAngle; |
| 67 |
|
| 68 |
strict private FFdStopBounce: TSFFloat; |
| 69 |
{ Internal wrapper for property @code(StopBounce). This wrapper API may change, we advise to access simpler @code(StopBounce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 70 |
public property FdStopBounce: TSFFloat read FFdStopBounce; |
| 71 |
{ } |
| 72 |
property StopBounce: Single read GetStopBounce write SetStopBounce; |
| 73 |
|
| 74 |
strict private FFdStopErrorCorrection: TSFFloat; |
| 75 |
{ Internal wrapper for property @code(StopErrorCorrection). This wrapper API may change, we advise to access simpler @code(StopErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 76 |
public property FdStopErrorCorrection: TSFFloat read FFdStopErrorCorrection; |
| 77 |
{ } |
| 78 |
property StopErrorCorrection: Single read GetStopErrorCorrection write SetStopErrorCorrection; |
| 79 |
|
| 80 |
strict private FEventAngle: TSFFloatEvent; |
| 81 |
{ } |
| 82 |
public property EventAngle: TSFFloatEvent read FEventAngle; |
| 83 |
|
| 84 |
strict private FEventAngleRate: TSFFloatEvent; |
| 85 |
{ } |
| 86 |
public property EventAngleRate: TSFFloatEvent read FEventAngleRate; |
| 87 |
|
| 88 |
strict private FEventBody1AnchorPoint: TSFVec3fEvent; |
| 89 |
{ } |
| 90 |
public property EventBody1AnchorPoint: TSFVec3fEvent read FEventBody1AnchorPoint; |
| 91 |
|
| 92 |
strict private FEventBody2AnchorPoint: TSFVec3fEvent; |
| 93 |
{ } |
| 94 |
public property EventBody2AnchorPoint: TSFVec3fEvent read FEventBody2AnchorPoint; |
| 95 |
|
| 96 |
{$endif read_interface} |
| 97 |
|
| 98 |
{$ifdef read_implementation} |
| 99 |
|
| 100 |
{ TSingleAxisHingeJointNode ----------------------------------------------- } |
| 101 |
|
| 102 |
function TSingleAxisHingeJointNode.GetAnchorPoint: TVector3; |
| 103 |
begin |
| 104 |
Result := FdAnchorPoint.Value; |
| 105 |
end; |
| 106 |
|
| 107 |
procedure TSingleAxisHingeJointNode.SetAnchorPoint(const Value: TVector3); |
| 108 |
begin |
| 109 |
FdAnchorPoint.Send(Value); |
| 110 |
end; |
| 111 |
|
| 112 |
function TSingleAxisHingeJointNode.GetAxis: TVector3; |
| 113 |
begin |
| 114 |
Result := FdAxis.Value; |
| 115 |
end; |
| 116 |
|
| 117 |
procedure TSingleAxisHingeJointNode.SetAxis(const Value: TVector3); |
| 118 |
begin |
| 119 |
FdAxis.Send(Value); |
| 120 |
end; |
| 121 |
|
| 122 |
function TSingleAxisHingeJointNode.GetMaxAngle: Single; |
| 123 |
begin |
| 124 |
Result := FdMaxAngle.Value; |
| 125 |
end; |
| 126 |
|
| 127 |
procedure TSingleAxisHingeJointNode.SetMaxAngle(const Value: Single); |
| 128 |
begin |
| 129 |
FdMaxAngle.Send(Value); |
| 130 |
end; |
| 131 |
|
| 132 |
function TSingleAxisHingeJointNode.GetMinAngle: Single; |
| 133 |
begin |
| 134 |
Result := FdMinAngle.Value; |
| 135 |
end; |
| 136 |
|
| 137 |
procedure TSingleAxisHingeJointNode.SetMinAngle(const Value: Single); |
| 138 |
begin |
| 139 |
FdMinAngle.Send(Value); |
| 140 |
end; |
| 141 |
|
| 142 |
function TSingleAxisHingeJointNode.GetStopBounce: Single; |
| 143 |
begin |
| 144 |
Result := FdStopBounce.Value; |
| 145 |
end; |
| 146 |
|
| 147 |
procedure TSingleAxisHingeJointNode.SetStopBounce(const Value: Single); |
| 148 |
begin |
| 149 |
FdStopBounce.Send(Value); |
| 150 |
end; |
| 151 |
|
| 152 |
function TSingleAxisHingeJointNode.GetStopErrorCorrection: Single; |
| 153 |
begin |
| 154 |
Result := FdStopErrorCorrection.Value; |
| 155 |
end; |
| 156 |
|
| 157 |
procedure TSingleAxisHingeJointNode.SetStopErrorCorrection(const Value: Single); |
| 158 |
begin |
| 159 |
FdStopErrorCorrection.Send(Value); |
| 160 |
end; |
| 161 |
|
| 162 |
class function TSingleAxisHingeJointNode.ClassX3DType: String; |
| 163 |
begin |
| 164 |
Result := 'SingleAxisHingeJoint'; |
| 165 |
end; |
| 166 |
|
| 167 |
procedure TSingleAxisHingeJointNode.CreateNode; |
| 168 |
begin |
| 169 |
inherited; |
| 170 |
|
| 171 |
FFdAnchorPoint := TSFVec3f.Create(Self, True, 'anchorPoint', Vector3(0, 0, 0)); |
| 172 |
FdAnchorPoint.ChangeAlways := chVisibleNonGeometry; |
| 173 |
AddField(FFdAnchorPoint); |
| 174 |
|
| 175 |
FFdAxis := TSFVec3f.Create(Self, True, 'axis', Vector3(0, 0, 0)); |
| 176 |
FdAxis.ChangeAlways := chVisibleNonGeometry; |
| 177 |
AddField(FFdAxis); |
| 178 |
|
| 179 |
FFdMaxAngle := TSFFloat.Create(Self, True, 'maxAngle', Pi); |
| 180 |
FdMaxAngle.ChangeAlways := chVisibleNonGeometry; |
| 181 |
AddField(FFdMaxAngle); |
| 182 |
|
| 183 |
FFdMinAngle := TSFFloat.Create(Self, True, 'minAngle', -Pi); |
| 184 |
FdMinAngle.ChangeAlways := chVisibleNonGeometry; |
| 185 |
AddField(FFdMinAngle); |
| 186 |
|
| 187 |
FFdStopBounce := TSFFloat.Create(Self, True, 'stopBounce', 0); |
| 188 |
FdStopBounce.ChangeAlways := chVisibleNonGeometry; |
| 189 |
FdStopBounce.MustBeNonnegative := true; |
| 190 |
AddField(FFdStopBounce); |
| 191 |
|
| 192 |
FFdStopErrorCorrection := TSFFloat.Create(Self, True, 'stopErrorCorrection', 0.8); |
| 193 |
FdStopErrorCorrection.ChangeAlways := chVisibleNonGeometry; |
| 194 |
FdStopErrorCorrection.MustBeNonnegative := true; |
| 195 |
AddField(FFdStopErrorCorrection); |
| 196 |
|
| 197 |
FEventAngle := TSFFloatEvent.Create(Self, 'angle', false); |
| 198 |
AddEvent(FEventAngle); |
| 199 |
|
| 200 |
FEventAngleRate := TSFFloatEvent.Create(Self, 'angleRate', false); |
| 201 |
AddEvent(FEventAngleRate); |
| 202 |
|
| 203 |
FEventBody1AnchorPoint := TSFVec3fEvent.Create(Self, 'body1AnchorPoint', false); |
| 204 |
AddEvent(FEventBody1AnchorPoint); |
| 205 |
|
| 206 |
FEventBody2AnchorPoint := TSFVec3fEvent.Create(Self, 'body2AnchorPoint', false); |
| 207 |
AddEvent(FEventBody2AnchorPoint); |
| 208 |
end; |
| 209 |
|
| 210 |
{$endif read_implementation} |