Scaleform Studio Lua API Reference: scaleform.physics namespace reference
The Scaleform Studio physics interface.
|
Interface for physics properties of a vgx actor.
|
|
The different types of physics bodies.
|
|
Create an initialized body construct definition table.
|
Parameters init : | scaleform.physics.BodyConstructParams? |
An table arguments to initialize the returned physics.BodyConstructParams table with.
// Only defined members of physics.BodyConstructParams are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
|
BodyDef ( init ) : scaleform.physics.BodyDef
Create an initialized body definition table.
|
Parameters init : | scaleform.physics.BodyDef? |
An table arguments to initialize the returned physics.BodyDef table with.
// Only defined members of physics.BodyDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.CollisionFilter? |
An table arguments to initialize the returned physics.CollisionFilter table with.
// Only defined members of physics.CollisionFilter are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.DistanceJointDef? |
An table arguments to initialize the returned physics.DistanceJointDef table with.
// Only defined members of physics.DistanceJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.FixtureDef? |
An table arguments to initialize the returned physics.FixtureDef table with.
// Only defined members of physics.FixtureDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.FrictionJointDef? |
An table arguments to initialize the returned physics.FrictionJointDef table with.
// Only defined members of physics.FrictionJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.GearJointDef? |
An table arguments to initialize the returned physics.GearJointDef table with.
// Only defined members of physics.GearJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.JointDef? |
An table arguments to initialize the returned physics.JointDef table with.
// Only defined members of physics.JointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.MassData? |
An table arguments to initialize the returned physics.MassData table with.
// Only defined members of physics.MassData are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.MaterialDef? |
An table arguments to initialize the returned physics.MaterialDef table with.
// Only defined members of physics.MaterialDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.MouseJointDef? |
An table arguments to initialize the returned physics.MouseJoint table with.
// Only defined members of physics.MouseJoint are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.PrismaticJointDef? |
An table arguments to initialize the returned physics.PrismaticJointDef table with.
// Only defined members of physics.PrismaticJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.RayCastInput? |
An table arguments to initialize the returned physics.RayCastInput table with.
// Only defined members of physics.RayCastInput are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.RayCastOutput? |
An table arguments to initialize the returned physics.RayCastOutput table with.
// Only defined members of physics.RayCastOutput are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.RevoluteJointDef? |
An table arguments to initialize the returned physics.RevoluteJointDef table with.
// Only defined members of physics.RevoluteJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.RopeJointDef? |
An table arguments to initialize the returned physics.RopeJointDef table with.
// Only defined members of physics.RopeJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.ShapeDef? |
An table arguments to initialize the returned physics.ShapeDef table with.
// Only defined members of physics.ShapeDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.Transform? |
An table arguments to initialize the returned physics.Transform table with.
// Only defined members of physics.Transform are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.WeldJointDef? |
An table arguments to initialize the returned physics.WeldJointDef table with.
// Only defined members of physics.WeldJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
Parameters init : | scaleform.physics.WheelJointDef? |
An table arguments to initialize the returned physics.WheelJointDef table with.
// Only defined members of physics.WheelJointDef are copied from the input type.
The ? notation indicates that this type is optional: there may be zero or one instances of it. |
Returns
scaleform.physics.Body
Interface for physics properties of a vgx actor.
scaleform.physics.ChainShape
Represents a chain shape consisting of multiple line segments.
scaleform.physics.CircleShape
Represents a circle that extends the shape and adds a radius and a local position.
scaleform.physics.DistanceJoint
A distant joint that keeps two bodies at the same distance.
scaleform.physics.EdgeShape
Represents an edge shape consisting of a line segment.
scaleform.physics.Fixture
An interface to attach shapes to the fixtures.
scaleform.physics.FrictionJoint
A friction joint that applies friction to a body.
scaleform.physics.GearJoint
A gear joint that keeps bodies together in such a way that they act like gears.
scaleform.physics.Joint
An interface for the physics properties of the joint between two physics bodies.
scaleform.physics.MouseJoint
A mouse joint for controlling objects with the mouse.
scaleform.physics.PolygonShape
Represents a polygon shape with up to 8 sides.
scaleform.physics.PrismaticJoint
A Prismatic joint that allows two bodies to revolve around a shared point.
scaleform.physics.PulleyJoint
A pulley joint that allows you to simulate bodies connected through pulleys.
scaleform.physics.RevoluteJoint
A revolute joint that allows two bodies to revolve around a shared point.
scaleform.physics.RopeJoint
A rope joint that keeps bodies together in such a way that they act like ropes
scaleform.physics.Shape
Represents shape used in fixtures.
scaleform.physics.WeldJoint
A weld joint that essentially glues two bodies together.
scaleform.physics.WheelJoint
A wheel joint that allows two bodies to revolve around a shared point.
scaleform.physics.World
Manages all physics entities, dynamic simulation, and asynchronous queries.
scaleform.physics.BodyTypes
The different types of physics bodies.
scaleform.physics.JointLimitStates
The limit state of a joint.
scaleform.physics.JointTypes
The different types of joints.
scaleform.physics.ShapeTypes
The different types of shapes.
scaleform.physics.BodyConstructParams (init) : scaleform.physics.BodyConstructParams
Create an initialized body construct definition table.
init : scaleform.physics.BodyConstructParams?
An table arguments to initialize the returned physics.BodyConstructParams table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.BodyConstructParams
Returns a fully constructed body construct table.
scaleform.PhysicsBodyComponent.set_body_params (self, bodyParams)
Sets the construction parameters to create a new physics body.
scaleform.physics.BodyDef (init) : scaleform.physics.BodyDef
Create an initialized body definition table.
init : scaleform.physics.BodyDef?
An table arguments to initialize the returned physics.BodyDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.BodyDef
Returns a fully constructed body definition table.
scaleform.physics.CollisionFilter (init) : scaleform.physics.CollisionFilter
Create an initialized collision filter table.
init : scaleform.physics.CollisionFilter?
An table arguments to initialize the returned physics.CollisionFilter table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.CollisionFilter
Returns a fully constructed collision filter table.
scaleform.physics.Fixture.set_filter_data (self, filter)
Sets the filter data used to filter collision between objects.
scaleform.physics.DistanceJointDef (init) : scaleform.physics.DistanceJointDef
Create an initialized distance joint definition table.
init : scaleform.physics.DistanceJointDef?
An table arguments to initialize the returned physics.DistanceJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.DistanceJointDef
Returns a fully constructed distance joint definition table.
scaleform.physics.FixtureDef (init) : scaleform.physics.FixtureDef
Create an initialized fixture definition table.
init : scaleform.physics.FixtureDef?
An table arguments to initialize the returned physics.FixtureDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.FixtureDef
Returns a fully constructed fixture definition table.
scaleform.PhysicsBodyComponent.add_fixture (self, fixture)
Attaches the fixture to the physics body.
scaleform.physics.FrictionJointDef (init) : scaleform.physics.FrictionJointDef
Create an initialized friction joint definition table.
init : scaleform.physics.FrictionJointDef?
An table arguments to initialize the returned physics.FrictionJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.FrictionJointDef
Returns a fully constructed friction joint definition table.
scaleform.physics.GearJointDef (init) : scaleform.physics.GearJointDef
Create an initialized gear joint definition table.
init : scaleform.physics.GearJointDef?
An table arguments to initialize the returned physics.GearJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.GearJointDef
Returns a fully constructed gear joint definition table.
scaleform.physics.JointDef (init) : scaleform.physics.JointDef
Create an initialized joint definition table.
init : scaleform.physics.JointDef?
An table arguments to initialize the returned physics.JointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.JointDef
Returns a fully constructed Joint definition table.
scaleform.physics.Joint.create (world, jointDef) : scaleform.physics.Joint
Creates a Joint based on the joint data definition.
scaleform.physics.MassData (init) : scaleform.physics.MassData
Create an initialized mass data table.
init : scaleform.physics.MassData?
An table arguments to initialize the returned physics.MassData table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.MassData
Returns a fully constructed mass data table.
scaleform.physics.Body.set_mass_data (self, data)
Sets the mass data of the body.
scaleform.physics.MaterialDef (init) : scaleform.physics.MaterialDef
Create an initialized material definition table.
init : scaleform.physics.MaterialDef?
An table arguments to initialize the returned physics.MaterialDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.MaterialDef
Returns a fully constructed material definition table.
scaleform.physics.Fixture.set_material (self, material)
Sets the material data for the fixture.
scaleform.physics.MouseJointDef (init) : scaleform.physics.MouseJointDef
Create an initialized mouse joint definition table.
init : scaleform.physics.MouseJointDef?
An table arguments to initialize the returned physics.MouseJoint table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.MouseJointDef
Returns a fully constructed mouse joint definition table.
scaleform.physics.PrismaticJointDef (init) : scaleform.physics.PrismaticJointDef
Create an initialized prismatic joint definition table.
init : scaleform.physics.PrismaticJointDef?
An table arguments to initialize the returned physics.PrismaticJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.PrismaticJointDef
Returns a fully constructed prismatic joint definition table.
scaleform.physics.RayCastInput (init) : scaleform.physics.RayCastInput
Create an initialized ray cast input table.
init : scaleform.physics.RayCastInput?
An table arguments to initialize the returned physics.RayCastInput table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.RayCastInput
Returns a fully constructed ray cast input table.
scaleform.physics.Fixture.cast_ray (self, input, index) : boolean, scaleform.physics.RayCastOutput
Cast a ray against this shape of the fixture.
scaleform.physics.Shape.ray_cast (self, input, transform, chainShapeChildIndex) : boolean, scaleform.physics.RayCastOutput
Cast a ray against a child shape.
scaleform.physics.RayCastOutput (init) : scaleform.physics.RayCastOutput
Create an initialized ray cast output table.
init : scaleform.physics.RayCastOutput?
An table arguments to initialize the returned physics.RayCastOutput table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.RayCastOutput
Returns a fully constructed ray cast output table.
scaleform.physics.RevoluteJointDef (init) : scaleform.physics.RevoluteJointDef
Create an initialized revolute joint definition table.
init : scaleform.physics.RevoluteJointDef?
An table arguments to initialize the returned physics.RevoluteJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.RevoluteJointDef
Returns a fully constructed revolute joint definition table.
scaleform.physics.RopeJointDef (init) : scaleform.physics.RopeJointDef
Create an initialized rope joint definition table.
init : scaleform.physics.RopeJointDef?
An table arguments to initialize the returned physics.RopeJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.RopeJointDef
Returns a fully constructed rope joint definition table.
scaleform.physics.ShapeDef (init) : scaleform.physics.ShapeDef
Create an initialized shape definition table.
init : scaleform.physics.ShapeDef?
An table arguments to initialize the returned physics.ShapeDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.ShapeDef
Returns a fully constructed shape definition table.
scaleform.physics.Fixture.create (body, shape, density) : scaleform.physics.Fixture
Creates a fixture and attaches it to the body.
scaleform.physics.Transform (init) : scaleform.physics.Transform
Create an initialized transform table.
init : scaleform.physics.Transform?
An table arguments to initialize the returned physics.Transform table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.Transform
Returns a fully constructed transform table.
scaleform.physics.WeldJointDef (init) : scaleform.physics.WeldJointDef
Create an initialized weld joint definition table.
init : scaleform.physics.WeldJointDef?
An table arguments to initialize the returned physics.WeldJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.WeldJointDef
Returns a fully constructed weld joint definition table.
scaleform.physics.WheelJointDef (init) : scaleform.physics.WheelJointDef
Create an initialized wheel joint definition table.
init : scaleform.physics.WheelJointDef?
An table arguments to initialize the returned physics.WheelJointDef table with. [more...]The ? notation indicates that this type is optional: there may be zero or one instances of it.
scaleform.physics.WheelJointDef
Returns a fully constructed wheel joint definition table.
self : scaleform.PhysicsBodyComponent
The physics body component that owns the body.
bodyParams : scaleform.physics.BodyConstructParams
Data required to create a new physics body.
self : scaleform.physics.Fixture
The fixture currently in use.
filter : scaleform.physics.CollisionFilter
The filter used to define the collision of the fixture.
self : scaleform.PhysicsBodyComponent
The physics body component that owns the body.
fixture : scaleform.physics.FixtureDef
The fixture definition data to create fixture.
world : scaleform.physics.World
The World in which the joint exists.
jointDef : scaleform.physics.JointDef
The joint data definition to create joint.
scaleform.physics.Joint
The newly created Joint.
self : scaleform.physics.Body
The physics body currently in use.
data : scaleform.physics.MassData
The mass data of the body.
self : scaleform.physics.Fixture
The fixture currently in use.
material : scaleform.physics.MaterialDef
The material data definition.
self : scaleform.physics.Fixture
The fixture currently in use.
input : scaleform.physics.RayCastInput
The input line end point.
index : integer
The index of the child the ray gets cast against.
boolean
scaleform.physics.RayCastOutput
the output line end point if the operation is successful.
self : scaleform.physics.Shape
The shape currently in use.
input : scaleform.physics.RayCastInput
The ray-cast input parameters.
transform : scaleform.physics.Transform
The transform to be applied to the shape.
chainShapeChildIndex : integer?
The chain child shape index.The ? notation indicates that this type is optional: there may be zero or one instances of it.
boolean
scaleform.physics.RayCastOutput
The ray-cast results
body : scaleform.physics.Body
The physics body to which the fixture is attached.
shape : scaleform.physics.ShapeDef
The shape definition data.
density : number
Density of the body.
scaleform.physics.Fixture
The newly created Fixture.
scaleform.PhysicsBodyComponent
Describes a Actor's physical properties.
A strictly integral numeric value, with no decimal component.true or false.A numeric value.Indicates a table.
This documentation uses the term table to mean an anonymous, temporary Lua table that contains named data values. You typically use these tables to pass data or settings to a function, or to hold data returned by a function.Indicates an object.
This documentation uses the term object to mean a named Lua table or userdata value that maintains a state. Some object types may have multiple instances existing at the same time, each with its own state; these objects typically have creation functions or accessors that you must call in order to get an instance. Some object types have only one instance, which you always access through the object's name.Indicates a named variable within a namespace, object or table; or an element within an enumeration.Indicates a code sample.Indicates an enumeration.
This documentation uses the term enumeration to mean a named Lua table that contains only a set of constant values. These values typically identify a predefined set of options for some setting or behavior. You might pass an enumeration value to a function, or test the value returned by a function against the items in the enumeration to see which option is currently set.Indicates a named variable within a namespace or object that has a pre-set constant value.Indicates a category: a semantic grouping of related API elements.Indicates a namespace.
This documentation uses the term namespace to mean a named Lua table that exists in only one single instance, intended as a container for an interface of related objects, functions and data variables.Indicates an output value returned by a function.Indicates a named function within a namespace or object.Indicates an input parameter for a function.