| ConstraintHelperSetVelocityOfWorldPoint Method |
Applies an impulse so that the velocity of point on the body is changed.
Namespace: DigitalRune.Physics.ConstraintsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public static void SetVelocityOfWorldPoint(
this RigidBody body,
Vector3F positionWorld,
Vector3F velocityWorld
)
<ExtensionAttribute>
Public Shared Sub SetVelocityOfWorldPoint (
body As RigidBody,
positionWorld As Vector3F,
velocityWorld As Vector3F
)
public:
[ExtensionAttribute]
static void SetVelocityOfWorldPoint(
RigidBody^ body,
Vector3F positionWorld,
Vector3F velocityWorld
)
[<ExtensionAttribute>]
static member SetVelocityOfWorldPoint :
body : RigidBody *
positionWorld : Vector3F *
velocityWorld : Vector3F -> unit
Parameters
- body
- Type: DigitalRune.PhysicsRigidBody
The body. - positionWorld
- Type: DigitalRune.Mathematics.AlgebraVector3F
The position on the body in world space. - velocityWorld
- Type: DigitalRune.Mathematics.AlgebraVector3F
The target velocity of the point in world space.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
RigidBody. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also