MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetVelocity

Method SetVelocity

ogsr_engine/xrGame/PHJoint.cpp:702–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702void CPHJoint::SetVelocity(const float velocity, const int axis_num)
703{
704 int ax;
705 ax = axis_num;
706 LimitAxisNum(ax);
707
708 if (ax == -1)
709 switch (eType)
710 {
711 case ball: return;
712 case hinge: axes[0].velocity = velocity; break;
713 case hinge2:;
714 case slider:;
715 axes[0].velocity = velocity;
716 axes[1].velocity = velocity;
717 break;
718 case full_control:
719 axes[0].velocity = velocity;
720 axes[1].velocity = velocity;
721 axes[2].velocity = velocity;
722 break;
723 }
724
725 else
726 {
727 axes[ax].velocity = velocity;
728 }
729
730 if (bActive)
731 {
732 SetVelocityActive(ax);
733 }
734}
735
736void CPHJoint::SetVelocityActive(const int axis_num)
737{

Callers 10

SetActorPositionMethod · 0.45
SetNpcPositionMethod · 0.45
set_JointResistanceMethod · 0.45
HitSignalMethod · 0.45
ForceTransformMethod · 0.45
move_along_pathMethod · 0.45
VirtualMoveToMethod · 0.45
ForceTransformMethod · 0.45
detach_VehicleMethod · 0.45
in_NetSpawnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected