Difference between revisions of "R3d.SliderJoint"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Joint<br/> === Description === The SliderJoint class describes a slider joint (or prismatic joint) that only...")
(No difference)

Revision as of 08:40, 21 February 2020

Available since: Gideros 2019.10
Class: R3d.Joint

Description

The SliderJoint class describes a slider joint (or prismatic joint) that only allows relative translation along a single direction. It has a single degree of freedom and allows no relative rotation.

In order to create a slider joint, you first need to specify the anchor point (in world-space) and the slider axis direction (in world-space). The constructor of the SliderJointInfo object needs two pointers to the bodies of the joint, the anchor point and the axis direction.

Note that the two bodies have to be in a correct initial position when the joint is created.

r3d.SliderJoint

Parameters

Example