{ -*- buffer-read-only: t -*- Copyright 2015-2024 Michalis Kamburelis. This file is part of "Castle Game Engine". "Castle Game Engine" is free software; see the file COPYING.txt, included in this distribution, for details about the copyright. "Castle Game Engine" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---------------------------------------------------------------------------- } { Automatically generated node properties. Do not edit this file manually! To add new properties: - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , - and regenerate include files by running x3d-nodes-to-pascal } {$ifdef read_interface} strict private function GetAnchorPoint: TVector3; procedure SetAnchorPoint(const Value: TVector3); function GetAxis1: TVector3; procedure SetAxis1(const Value: TVector3); function GetAxis2: TVector3; procedure SetAxis2(const Value: TVector3); function GetDesiredAngularVelocity1: Single; procedure SetDesiredAngularVelocity1(const Value: Single); function GetDesiredAngularVelocity2: Single; procedure SetDesiredAngularVelocity2(const Value: Single); function GetMaxAngle1: Single; procedure SetMaxAngle1(const Value: Single); function GetMaxTorque1: Single; procedure SetMaxTorque1(const Value: Single); function GetMaxTorque2: Single; procedure SetMaxTorque2(const Value: Single); function GetMinAngle1: Single; procedure SetMinAngle1(const Value: Single); function GetStopBounce1: Single; procedure SetStopBounce1(const Value: Single); function GetStopConstantForceMix1: Single; procedure SetStopConstantForceMix1(const Value: Single); function GetStopErrorCorrection1: Single; procedure SetStopErrorCorrection1(const Value: Single); function GetSuspensionErrorCorrection: Single; procedure SetSuspensionErrorCorrection(const Value: Single); function GetSuspensionForce: Single; procedure SetSuspensionForce(const Value: Single); public { Create node fields and events. } procedure CreateNode; override; class function ClassX3DType: String; override; strict private FFdAnchorPoint: TSFVec3f; { 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). } public property FdAnchorPoint: TSFVec3f read FFdAnchorPoint; { } property AnchorPoint: TVector3 read GetAnchorPoint write SetAnchorPoint; strict private FFdAxis1: TSFVec3f; { Internal wrapper for property @code(Axis1). This wrapper API may change, we advise to access simpler @code(Axis1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdAxis1: TSFVec3f read FFdAxis1; { } property Axis1: TVector3 read GetAxis1 write SetAxis1; strict private FFdAxis2: TSFVec3f; { Internal wrapper for property @code(Axis2). This wrapper API may change, we advise to access simpler @code(Axis2) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdAxis2: TSFVec3f read FFdAxis2; { } property Axis2: TVector3 read GetAxis2 write SetAxis2; strict private FFdDesiredAngularVelocity1: TSFFloat; { Internal wrapper for property @code(DesiredAngularVelocity1). This wrapper API may change, we advise to access simpler @code(DesiredAngularVelocity1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdDesiredAngularVelocity1: TSFFloat read FFdDesiredAngularVelocity1; { } property DesiredAngularVelocity1: Single read GetDesiredAngularVelocity1 write SetDesiredAngularVelocity1; strict private FFdDesiredAngularVelocity2: TSFFloat; { Internal wrapper for property @code(DesiredAngularVelocity2). This wrapper API may change, we advise to access simpler @code(DesiredAngularVelocity2) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdDesiredAngularVelocity2: TSFFloat read FFdDesiredAngularVelocity2; { } property DesiredAngularVelocity2: Single read GetDesiredAngularVelocity2 write SetDesiredAngularVelocity2; strict private FFdMaxAngle1: TSFFloat; { Internal wrapper for property @code(MaxAngle1). This wrapper API may change, we advise to access simpler @code(MaxAngle1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdMaxAngle1: TSFFloat read FFdMaxAngle1; { } property MaxAngle1: Single read GetMaxAngle1 write SetMaxAngle1; strict private FFdMaxTorque1: TSFFloat; { Internal wrapper for property @code(MaxTorque1). This wrapper API may change, we advise to access simpler @code(MaxTorque1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdMaxTorque1: TSFFloat read FFdMaxTorque1; { } property MaxTorque1: Single read GetMaxTorque1 write SetMaxTorque1; strict private FFdMaxTorque2: TSFFloat; { Internal wrapper for property @code(MaxTorque2). This wrapper API may change, we advise to access simpler @code(MaxTorque2) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdMaxTorque2: TSFFloat read FFdMaxTorque2; { } property MaxTorque2: Single read GetMaxTorque2 write SetMaxTorque2; strict private FFdMinAngle1: TSFFloat; { Internal wrapper for property @code(MinAngle1). This wrapper API may change, we advise to access simpler @code(MinAngle1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdMinAngle1: TSFFloat read FFdMinAngle1; { } property MinAngle1: Single read GetMinAngle1 write SetMinAngle1; strict private FFdStopBounce1: TSFFloat; { Internal wrapper for property @code(StopBounce1). This wrapper API may change, we advise to access simpler @code(StopBounce1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdStopBounce1: TSFFloat read FFdStopBounce1; { } property StopBounce1: Single read GetStopBounce1 write SetStopBounce1; strict private FFdStopConstantForceMix1: TSFFloat; { Internal wrapper for property @code(StopConstantForceMix1). This wrapper API may change, we advise to access simpler @code(StopConstantForceMix1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdStopConstantForceMix1: TSFFloat read FFdStopConstantForceMix1; { } property StopConstantForceMix1: Single read GetStopConstantForceMix1 write SetStopConstantForceMix1; strict private FFdStopErrorCorrection1: TSFFloat; { Internal wrapper for property @code(StopErrorCorrection1). This wrapper API may change, we advise to access simpler @code(StopErrorCorrection1) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdStopErrorCorrection1: TSFFloat read FFdStopErrorCorrection1; { } property StopErrorCorrection1: Single read GetStopErrorCorrection1 write SetStopErrorCorrection1; strict private FFdSuspensionErrorCorrection: TSFFloat; { Internal wrapper for property @code(SuspensionErrorCorrection). This wrapper API may change, we advise to access simpler @code(SuspensionErrorCorrection) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdSuspensionErrorCorrection: TSFFloat read FFdSuspensionErrorCorrection; { } property SuspensionErrorCorrection: Single read GetSuspensionErrorCorrection write SetSuspensionErrorCorrection; strict private FFdSuspensionForce: TSFFloat; { Internal wrapper for property @code(SuspensionForce). This wrapper API may change, we advise to access simpler @code(SuspensionForce) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } public property FdSuspensionForce: TSFFloat read FFdSuspensionForce; { } property SuspensionForce: Single read GetSuspensionForce write SetSuspensionForce; strict private FEventBody1AnchorPoint: TSFVec3fEvent; { } public property EventBody1AnchorPoint: TSFVec3fEvent read FEventBody1AnchorPoint; strict private FEventBody1Axis: TSFVec3fEvent; { } public property EventBody1Axis: TSFVec3fEvent read FEventBody1Axis; strict private FEventBody2AnchorPoint: TSFVec3fEvent; { } public property EventBody2AnchorPoint: TSFVec3fEvent read FEventBody2AnchorPoint; strict private FEventBody2Axis: TSFVec3fEvent; { } public property EventBody2Axis: TSFVec3fEvent read FEventBody2Axis; strict private FEventHinge1Angle: TSFFloatEvent; { } public property EventHinge1Angle: TSFFloatEvent read FEventHinge1Angle; strict private FEventHinge1AngleRate: TSFFloatEvent; { } public property EventHinge1AngleRate: TSFFloatEvent read FEventHinge1AngleRate; strict private FEventHinge2Angle: TSFFloatEvent; { } public property EventHinge2Angle: TSFFloatEvent read FEventHinge2Angle; strict private FEventHinge2AngleRate: TSFFloatEvent; { } public property EventHinge2AngleRate: TSFFloatEvent read FEventHinge2AngleRate; {$endif read_interface} {$ifdef read_implementation} { TDoubleAxisHingeJointNode ----------------------------------------------- } function TDoubleAxisHingeJointNode.GetAnchorPoint: TVector3; begin Result := FdAnchorPoint.Value; end; procedure TDoubleAxisHingeJointNode.SetAnchorPoint(const Value: TVector3); begin FdAnchorPoint.Send(Value); end; function TDoubleAxisHingeJointNode.GetAxis1: TVector3; begin Result := FdAxis1.Value; end; procedure TDoubleAxisHingeJointNode.SetAxis1(const Value: TVector3); begin FdAxis1.Send(Value); end; function TDoubleAxisHingeJointNode.GetAxis2: TVector3; begin Result := FdAxis2.Value; end; procedure TDoubleAxisHingeJointNode.SetAxis2(const Value: TVector3); begin FdAxis2.Send(Value); end; function TDoubleAxisHingeJointNode.GetDesiredAngularVelocity1: Single; begin Result := FdDesiredAngularVelocity1.Value; end; procedure TDoubleAxisHingeJointNode.SetDesiredAngularVelocity1(const Value: Single); begin FdDesiredAngularVelocity1.Send(Value); end; function TDoubleAxisHingeJointNode.GetDesiredAngularVelocity2: Single; begin Result := FdDesiredAngularVelocity2.Value; end; procedure TDoubleAxisHingeJointNode.SetDesiredAngularVelocity2(const Value: Single); begin FdDesiredAngularVelocity2.Send(Value); end; function TDoubleAxisHingeJointNode.GetMaxAngle1: Single; begin Result := FdMaxAngle1.Value; end; procedure TDoubleAxisHingeJointNode.SetMaxAngle1(const Value: Single); begin FdMaxAngle1.Send(Value); end; function TDoubleAxisHingeJointNode.GetMaxTorque1: Single; begin Result := FdMaxTorque1.Value; end; procedure TDoubleAxisHingeJointNode.SetMaxTorque1(const Value: Single); begin FdMaxTorque1.Send(Value); end; function TDoubleAxisHingeJointNode.GetMaxTorque2: Single; begin Result := FdMaxTorque2.Value; end; procedure TDoubleAxisHingeJointNode.SetMaxTorque2(const Value: Single); begin FdMaxTorque2.Send(Value); end; function TDoubleAxisHingeJointNode.GetMinAngle1: Single; begin Result := FdMinAngle1.Value; end; procedure TDoubleAxisHingeJointNode.SetMinAngle1(const Value: Single); begin FdMinAngle1.Send(Value); end; function TDoubleAxisHingeJointNode.GetStopBounce1: Single; begin Result := FdStopBounce1.Value; end; procedure TDoubleAxisHingeJointNode.SetStopBounce1(const Value: Single); begin FdStopBounce1.Send(Value); end; function TDoubleAxisHingeJointNode.GetStopConstantForceMix1: Single; begin Result := FdStopConstantForceMix1.Value; end; procedure TDoubleAxisHingeJointNode.SetStopConstantForceMix1(const Value: Single); begin FdStopConstantForceMix1.Send(Value); end; function TDoubleAxisHingeJointNode.GetStopErrorCorrection1: Single; begin Result := FdStopErrorCorrection1.Value; end; procedure TDoubleAxisHingeJointNode.SetStopErrorCorrection1(const Value: Single); begin FdStopErrorCorrection1.Send(Value); end; function TDoubleAxisHingeJointNode.GetSuspensionErrorCorrection: Single; begin Result := FdSuspensionErrorCorrection.Value; end; procedure TDoubleAxisHingeJointNode.SetSuspensionErrorCorrection(const Value: Single); begin FdSuspensionErrorCorrection.Send(Value); end; function TDoubleAxisHingeJointNode.GetSuspensionForce: Single; begin Result := FdSuspensionForce.Value; end; procedure TDoubleAxisHingeJointNode.SetSuspensionForce(const Value: Single); begin FdSuspensionForce.Send(Value); end; class function TDoubleAxisHingeJointNode.ClassX3DType: String; begin Result := 'DoubleAxisHingeJoint'; end; procedure TDoubleAxisHingeJointNode.CreateNode; begin inherited; FFdAnchorPoint := TSFVec3f.Create(Self, True, 'anchorPoint', Vector3(0, 0, 0)); FdAnchorPoint.ChangeAlways := chVisibleNonGeometry; AddField(FFdAnchorPoint); FFdAxis1 := TSFVec3f.Create(Self, True, 'axis1', Vector3(0, 0, 0)); FdAxis1.ChangeAlways := chVisibleNonGeometry; AddField(FFdAxis1); FFdAxis2 := TSFVec3f.Create(Self, True, 'axis2', Vector3(0, 0, 0)); FdAxis2.ChangeAlways := chVisibleNonGeometry; AddField(FFdAxis2); FFdDesiredAngularVelocity1 := TSFFloat.Create(Self, True, 'desiredAngularVelocity1', 0); FdDesiredAngularVelocity1.ChangeAlways := chVisibleNonGeometry; AddField(FFdDesiredAngularVelocity1); FFdDesiredAngularVelocity2 := TSFFloat.Create(Self, True, 'desiredAngularVelocity2', 0); FdDesiredAngularVelocity2.ChangeAlways := chVisibleNonGeometry; AddField(FFdDesiredAngularVelocity2); FFdMaxAngle1 := TSFFloat.Create(Self, True, 'maxAngle1', Pi); FdMaxAngle1.ChangeAlways := chVisibleNonGeometry; AddField(FFdMaxAngle1); FFdMaxTorque1 := TSFFloat.Create(Self, True, 'maxTorque1', 0); FdMaxTorque1.ChangeAlways := chVisibleNonGeometry; AddField(FFdMaxTorque1); FFdMaxTorque2 := TSFFloat.Create(Self, True, 'maxTorque2', 0); FdMaxTorque2.ChangeAlways := chVisibleNonGeometry; AddField(FFdMaxTorque2); FFdMinAngle1 := TSFFloat.Create(Self, True, 'minAngle1', -Pi); FdMinAngle1.ChangeAlways := chVisibleNonGeometry; AddField(FFdMinAngle1); FFdStopBounce1 := TSFFloat.Create(Self, True, 'stopBounce1', 0); FdStopBounce1.ChangeAlways := chVisibleNonGeometry; FdStopBounce1.MustBeNonnegative := true; AddField(FFdStopBounce1); FFdStopConstantForceMix1 := TSFFloat.Create(Self, True, 'stopConstantForceMix1', 0.001); FdStopConstantForceMix1.ChangeAlways := chVisibleNonGeometry; FdStopConstantForceMix1.MustBeNonnegative := true; AddField(FFdStopConstantForceMix1); FFdStopErrorCorrection1 := TSFFloat.Create(Self, True, 'stopErrorCorrection1', 0.8); FdStopErrorCorrection1.ChangeAlways := chVisibleNonGeometry; FdStopErrorCorrection1.MustBeNonnegative := true; AddField(FFdStopErrorCorrection1); FFdSuspensionErrorCorrection := TSFFloat.Create(Self, True, 'suspensionErrorCorrection', 0.8); FdSuspensionErrorCorrection.ChangeAlways := chVisibleNonGeometry; FdSuspensionErrorCorrection.MustBeNonnegative := true; AddField(FFdSuspensionErrorCorrection); FFdSuspensionForce := TSFFloat.Create(Self, True, 'suspensionForce', 0); FdSuspensionForce.ChangeAlways := chVisibleNonGeometry; FdSuspensionForce.MustBeNonnegative := true; AddField(FFdSuspensionForce); FEventBody1AnchorPoint := TSFVec3fEvent.Create(Self, 'body1AnchorPoint', false); AddEvent(FEventBody1AnchorPoint); FEventBody1Axis := TSFVec3fEvent.Create(Self, 'body1Axis', false); AddEvent(FEventBody1Axis); FEventBody2AnchorPoint := TSFVec3fEvent.Create(Self, 'body2AnchorPoint', false); AddEvent(FEventBody2AnchorPoint); FEventBody2Axis := TSFVec3fEvent.Create(Self, 'body2Axis', false); AddEvent(FEventBody2Axis); FEventHinge1Angle := TSFFloatEvent.Create(Self, 'hinge1Angle', false); AddEvent(FEventHinge1Angle); FEventHinge1AngleRate := TSFFloatEvent.Create(Self, 'hinge1AngleRate', false); AddEvent(FEventHinge1AngleRate); FEventHinge2Angle := TSFFloatEvent.Create(Self, 'hinge2Angle', false); AddEvent(FEventHinge2Angle); FEventHinge2AngleRate := TSFFloatEvent.Create(Self, 'hinge2AngleRate', false); AddEvent(FEventHinge2AngleRate); end; {$endif read_implementation}