โกActions
This section lists all available Actions in MakeIt3D. Use these in Construct 3 Event Sheets to create and control 3D elements.
Worldโ
Initialize Rapier Physics
worldInitialize the Rapier physics engine to enable physics simulation in your 3D scene.
Example:
MakeIt3D.InitRapierPhysics()
Update Physics Step
worldUpdate the physics engine simulation to keep everything synchronized with the frame rate.
Parameters
Example:
MakeIt3D.UpdatePhysicsStep(dt)
Change Gravity
worldModify the physics world's gravity settings and optionally wake sleeping objects to apply changes immediately.
Parameters
Example:
MakeIt3D.ChangeGravity(0, -9.81, 0, true)
Set Object Gravity Scale
worldSet a multiplier for how much gravity affects a specific rigidbody object.
Parameters
Example:
MakeIt3D.SetGravityScale('feather1', 0.1)
Transformationsโ
Set Object Position
transformsDirectly set the position of a rigidbody. Best used with kinematic objects to avoid unrealistic teleporting.
Parameters
Example:
MakeIt3D.SetPosition('player1', 10, 5, -3)
Set Object Rotation
transformsDirectly set the rotation of a rigidbody. Best used with kinematic objects to avoid unrealistic teleporting.
Parameters
Example:
MakeIt3D.SetRotation('platform1', 0, 45, 0)
Raycastโ
Camera to Screen Raycast
raycastCast a ray from the camera through screen coordinates to detect objects in 3D space.
Parameters
Example:
MakeIt3D.CameraToScreenRay(400, 300, 1000, true)
Object to Directional Raycast
raycastCast a ray from an object's position in a specified local direction, updating with object movement.
Parameters
Example:
MakeIt3D.ObjectToDirectionalRay('player1', Vector3(0,-1,0), 2, true)
Origin to Directional Raycast
raycastCast a ray from any world position in a specified direction for general-purpose collision detection.
Parameters
Example:
MakeIt3D.OriginToDirectionalRay(Vector3(0,10,0), Vector3(0,-1,0), 50, false)
Set Ignore Raycast
raycastConfigure whether raycast operations should ignore specific objects and pass through them.
Parameters
Example:
MakeIt3D.IgnoreRaycast('glass_window', true)
Jointsโ
Create Fixed Joint
jointsCreate a rigid connection between two rigidbodies that prevents all relative motion.
Parameters
Example:
MakeIt3D.CreateFixedJoint('car_body', 'car_wheel', 'wheel_joint_1')
Create Revolute Joint
jointsCreate a hinge joint that allows rotation around a specified axis between two rigidbodies.
Parameters
Example:
MakeIt3D.CreateRevoluteJoint('door', 'frame', 'door_hinge', Vector3(0,0,0), Vector3(0,0,0), Vector3(0,1,0))
Create Spherical Joint
jointsCreate a ball joint that allows rotation in all directions between two rigidbodies.
Parameters
Example:
MakeIt3D.CreateSphericalJoint('shoulder', 'arm', 'shoulder_joint', Vector3(0,0,0), Vector3(0,0,0))
Create Prismatic Joint
jointsCreate a sliding joint that allows linear movement along a specified axis with optional distance limits.
Parameters
Example:
MakeIt3D.CreatePrismaticJoint('piston', 'cylinder', 'piston_joint', Vector3(0,0,0), Vector3(0,0,0), Vector3(0,1,0), -2, 2)
Remove Joint
jointsRemove an existing joint connection from the physics world using its unique identifier.
Parameters
Example:
MakeIt3D.RemoveJoint('door_hinge')
Set Joint Motor Position
jointsDrive a joint towards a specific target position using a spring-damper system.
Parameters
Example:
MakeIt3D.SetJointMotorPosition('servo_joint', 1.57, 1000, 50)
Set Joint Motor Velocity
jointsDrive a joint at a constant target velocity, ignoring position control.
Parameters
Example:
MakeIt3D.SetJointMotorVelocity('wheel_motor', 10, 20)
Set Joint Motor Advanced
jointsAdvanced motor control combining both position and velocity using spring-like behavior.
Parameters
Example:
MakeIt3D.SetJointMotor('advanced_servo', 0.5, 2.0, 800, 40)
Set Joint Motor Model
jointsConfigure the underlying motor control algorithm for a joint (force-based or acceleration-based).
Parameters
Example:
MakeIt3D.SetJointMotorModel('precise_joint', 'acceleration')
Set Joint Motor Max Impulse
jointsLimit the maximum force or torque that a joint motor can apply for safety or realism.
Parameters
Example:
MakeIt3D.SetJointMotorMaxImpulse('safety_joint', 500)
Objects (Rigidbody)โ
Add Plane RigidBody
objectsAdd an infinite plane rigidbody to the scene with physics properties and visual appearance.
Parameters
Example:
MakeIt3D.AddPlane('ground', 'static', 1.0, 0.1, 0.1, 0.8, 0.0, Vector3(0,-5,0), Vector3(0,0,0), rgbEx(100,100,100), Vector3(1,1,1), 'floor')
Add Cube RigidBody
objectsAdd a cube-shaped rigidbody to the scene with full physics simulation capabilities.
Parameters
Example:
MakeIt3D.AddCube('box1', 'dynamic', 1.0, 0.1, 0.1, 0.7, 0.3, Vector3(0,10,0), Vector3(0,0,0), rgbEx(255,0,0), Vector3(1,1,1), 'redbox')
Add Sphere RigidBody
objectsAdd a spherical rigidbody to the scene with realistic physics behavior.
Parameters
Example:
MakeIt3D.AddSphere('ball1', 'dynamic', 1.0, 0.05, 0.05, 0.6, 0.8, Vector3(0,15,0), Vector3(0,0,0), rgbEx(0,255,0), Vector3(1,1,1), 'greenball')
Add Cylinder RigidBody
objectsAdd a cylindrical rigidbody to the scene for creating pillars, barrels, or rolling objects.
Parameters
Example:
MakeIt3D.AddCylinder('barrel1', 'dynamic', 1.2, 0.1, 0.1, 0.8, 0.2, Vector3(5,8,0), Vector3(0,0,0), rgbEx(139,69,19), Vector3(1,2,1), 'barrel')
Add Cone RigidBody
objectsAdd a cone-shaped rigidbody to the scene for creating pointed objects or markers.
Parameters
Example:
MakeIt3D.AddCone('cone1', 'dynamic', 1.0, 0.1, 0.1, 0.7, 0.3, Vector3(-5,8,0), Vector3(0,0,0), rgbEx(255,165,0), Vector3(1,1,1), 'cone')
Add Capsule RigidBody
objectsAdd a capsule (pill-shaped) rigidbody to the scene, ideal for character controllers or rounded objects.
Parameters
Example:
MakeIt3D.AddCapsule('player1', 'kinematic-position', 1.0, 0.2, 0.2, 0.5, 0.1, Vector3(0,5,0), Vector3(0,0,0), rgbEx(0,0,255), Vector3(1,1,1), 0.5, 2.0, 'player')
Attach RigidBody to Object
objectsConvert an existing 3D object into a physics-enabled rigidbody with collision detection.
Parameters
Example:
MakeIt3D.AttachRigidBodyToObject('myModel', 'dynamic', 'guess_shape', 1.0, 0.1, 0.1, 0.7, 0.3, 'physicsobject')
Forces & Tourquesโ
Apply Force
forcesApply continuous force to a rigidbody. Force persists until reset, ideal for propulsion or wind effects.
Parameters
Example:
MakeIt3D.ApplyForce('rocket1', 0, 100, 0)
Apply Force at Point
forcesApply continuous force at a specific point on the rigidbody, creating both linear and rotational motion.
Parameters
Example:
MakeIt3D.ApplyForceAtPoint('car1', 50, 0, 0, 0, -1, 2)
Apply Impulse
forcesApply an instant burst of force to a rigidbody, ideal for jumps, explosions, or one-time pushes.
Parameters
Example:
MakeIt3D.ApplyImpulse('ball1', 0, 500, 0)
Apply Impulse Toward Point
forcesApply an impulse that pushes the rigidbody toward or away from a specific world position.
Parameters
Example:
MakeIt3D.ApplyImpulseTowardPoint('asteroid1', 0, 0, 0, -200)
Apply Impulse at Point
forcesApply an instant impulse at a specific point on the rigidbody for realistic impact simulation.
Parameters
Example:
MakeIt3D.ApplyImpulseAtPoint('crate1', 100, 0, 0, 0, 1, 0)
Apply Torque
torquesApply continuous rotational force to a rigidbody. Torque persists until reset, ideal for motors or spinning effects.
Parameters
Example:
MakeIt3D.ApplyTorque('wheel1', 0, 0, 50)
Apply Torque at Point
torquesApply continuous rotational force at a specific point on the rigidbody for complex rotational effects.
Parameters
Example:
MakeIt3D.ApplyTorqueAtPoint('propeller1', 0, 100, 0, 0, 0, 2)
Apply Torque Impulse
torquesApply an instant burst of rotational force to a rigidbody for sudden spinning motion.
Parameters
Example:
MakeIt3D.ApplyTorqueImpulse('dice1', 50, 100, 75)
Reset Force
forcesStop all continuous forces currently being applied to a rigidbody.
Parameters
Example:
MakeIt3D.ResetForce('rocket1')
Reset Torque
torquesStop all continuous torques currently being applied to a rigidbody.
Parameters
Example:
MakeIt3D.ResetTorque('motor1')
Collions & Triggersโ
Enable Collision Events
collisionEnable physical collision detection events for an object to receive OnCollisionEnter and OnCollisionExit callbacks.
Parameters
Example:
MakeIt3D.EnableCollisionEvents('player1')
Enable Trigger Events
collisionEnable non-physical trigger events for an object to receive OnTriggerEnter and OnTriggerExit callbacks.
Parameters
Example:
MakeIt3D.EnableTriggerEvents('checkpoint1')
Disable Collision Events
collisionDisable physical collision event detection for an object to stop receiving collision callbacks.
Parameters
Example:
MakeIt3D.DisableCollisionEvents('wall1')
Disable Trigger Events
collisionDisable non-physical trigger event detection for an object to stop receiving trigger callbacks.
Parameters
Example:
MakeIt3D.DisableTriggerEvents('powerup1')
Enable Contact Force Events
collisionEnable contact force event detection to receive detailed collision force information when impacts exceed the threshold.
Parameters
Example:
MakeIt3D.EnableContactForceEvents('car1', 500)
Continue with other sections...โ
You can organize the rest of your actions (Lights, Materials, Animation, Utils) in the same professional card format!