Class PhysicsJointSpring
A PhysicsJointSpring connects two physics bodies as if by a spring.
public sealed class PhysicsJointSpring : PhysicsJoint
- Inheritance
-
PhysicsJointSpring
- Inherited Members
Constructors
PhysicsJointSpring(PhysicsBody, PhysicsBody, PointF, PointF)
Connect two physics bodies as if by a spring.
public PhysicsJointSpring(PhysicsBody bodyA, PhysicsBody bodyB, PointF anchorA, PointF anchorB)
Parameters
bodyA
PhysicsBodybodyB
PhysicsBodyanchorA
PointFanchorB
PointF
Properties
Damping
Controls the rate at which oscillations decay.
public float Damping { get; set; }
Property Value
Frequency
Controls the speed with which oscillations occur.
public float Frequency { get; set; }