Core API Reference: Shape Physics Dynamics

From Color Infection Wiki

Jump to: navigation, search


Contents


Get Linear Velocity

Get the linear velocity of a shape.

Input Parameters:

The Shape
the shape

Output Parameters:

Velocity X
velocity x
Velocity Y
velocity y
Set Linear Velocity

Set the linear velocity of a shape.

Input Parameters:

The Shape
the shape
Velocity X
new velocity x
Velocity Y
new velocity y

Output Parameters:

(none)
Change Linear Velocity

Change the linear velocity of a shape by a delta.

Input Parameters:

The Shape
the shape
Delta Velocity X
delta velocity x
Delta Velocity Y
delta velocity y

Output Parameters:

(none)
Get Angular Velocity By Radians

Get the angular velocity of a shape by radians/s.

Input Parameters:

The Shape
the shape

Output Parameters:

Angular Velocity
angular velocity (radians/s)
Get Angular Velocity By Degrees

Get the angular velocity of a shape by degrees/s.

Input Parameters:

The Shape
the shape

Output Parameters:

Angular Velocity
angular velocity (degrees/s)
Set Angular Velocity By Radians

Set the angular velocity of a shape by radians/s.

Input Parameters:

The Shape
the shape
Angular Velocity
new angular velocity (radians/s)

Output Parameters:

(none)
Set Angular Velocity By Degrees

Set the angular velocity of a shape by degrees/s.

Input Parameters:

The Shape
the shape
Angular Velocity
new angular velocity (degrees/s)

Output Parameters:

(none)
Change Angular Velocity By Radians

Change the angular velocity of a shape by radians/s.

Input Parameters:

The Shape
the shape
Angular Velocity
delta angular velocity (radians/s)

Output Parameters:

(none)
Change Angular Velocity By Degrees

Change the angular velocity of a shape by degrees/s.

Input Parameters:

The Shape
the shape
Angular Velocity
delta angular velocity (degrees/s)

Output Parameters:

(none)
Apply Step Force

Apply a force on a shape for one step.

Input Parameters:

The Shape
the shape
Force X
force x
Force Y
force y
Is Local Force?
true means the force is in the local space of the shape, false means the force is in the world space.
Apply on Centroid of Brothers?
true means applying the force on the centroid of glued group, false means applying the force on the centroid of the shape.

Output Parameters:

(none)
Apply Step Force at Local Point

Apply a force on a shape at a specified local point for one step.

Input Parameters:

The Shape
the shape
Force X
force x
Force Y
force y
Is Local Force?
true means the force is in the local space of the shape, false means the force is in the world space.
Local Point X
point x in the local space of the shape
Local Point Y
point y in the local space of the shape

Output Parameters:

(none)
Apply Step Force at World Point

Apply a force on a shape at a specified world point for one step.

Input Parameters:

The Shape
the shape
Force X
force x
Force Y
force y
Is Local Force?
true means the force is in the local space of the shape, false means the force is in the world space.
World Point X
world x
World Point Y
world y

Output Parameters:

(none)
Apply Step Torque

Apply a torque on a shape for one step.

Input Parameters:

The Shape
the shape
Torque
torque

Output Parameters:

(none)
Apply Impulse

Apply a linear impulse on a shape. The impulse will apply on the centroid of the shape or the centroid of the shape's brothers group.

Input Parameters:

The Shape
the shape
Impulse X
impulse x
Impulse Y
impulse y
Is Local Impulse?
true means the impulse is in the local space of the shape, false means the impulse is in the world space.
Apply on Centroid of Brothers?
true means applying the impulse on the centroid of brothers group, false means applying the impulse on the centroid of the shape.

Output Parameters:

(none)
Apply Impulse at Local Point

Apply a linear impulse on a shape at a specified local point in the shape's space.

Input Parameters:

The Shape
the shape
Impulse X
impulse x
Impulse Y
impulse y
Is Local Impulse?
true means the impulse is in the local space of the shape, false means the impulse is in the world space.
Local Point X
point x in the local space of the shape
Local Point Y
point y in the local space of the shape

Output Parameters:

(none)
Apply Impulse at World Point

Apply a linear impulse on a shape at a specified point in world space.

Input Parameters:

The Shape
the shape
Impulse X
impulse x
Impulse Y
impulse y
Is Local Impulse?
true means the impulse is in the local space of the shape, false means the impulse is in the world space.
World Point X
world x
World Point Y
world y

Output Parameters:

(none)
Apply Angular Impulse

Apply an angular impulse on a shape.

Input Parameters:

The Shape
the shape
Angular Impulse
the angular impulse to apply

Output Parameters:

(none)
Personal tools