Scripting API
Scripting API
Joints3DEditing
Class in Abyss.Physics3D, from Abyss.Physics3D.
Joints in the editor: put on an entity, a joint brings a Rigidbody 3D where there is none on the entity or above it; Edit Joint moves its anchors in the Scene view by handles of the Move tool's; and the joints of what is picked are drawn there — where each holds its own body and the other, the line between, a hinge's axis and how far it may turn, a slider's line and how far it may slide, and a ragdoll joint's cone and its twist.
public sealed class Joints3DEditing : IPluginRemarks
Edit Joint puts a point on Anchor, which moves where the joint holds its own body, and one on Connected Anchor where it is not worked out as the joint is made, which moves where it holds the other: in that body's own units, or the world's where the joint names none. Each moved anywhere, by the arrows and squares of a Move handle on it, turned as the Scene row's Local or Global says, snapped as the Move tool is.
A hinge's and a slider's limits, and a ragdoll joint's cone, are drawn from where the bodies are now, which is where they are as the game starts and the joint is made: a hinge's angles from the way from its axis to the middle of its entity, as a door's swing.
Methods
Build
public void Build(Schedule schedule)Parameters
schedule
Fields
Blue
public static readonly Vector4 BlueWhat joints are drawn in: a light blue, #6FB8FF, apart from the colliders' green.
Constants
Button
public const string Button = "Edit Joint"What the Inspector's button reads.
