Table of Contents

Class PhysicsJointSpring

Namespace
Fantas.Physics
Assembly
Fantas.dll

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 PhysicsBody
bodyB PhysicsBody
anchorA PointF
anchorB PointF

Properties

Damping

Controls the rate at which oscillations decay.

public float Damping { get; set; }

Property Value

float

Frequency

Controls the speed with which oscillations occur.

public float Frequency { get; set; }

Property Value

float