Add realistic physics simulation to your games with gravity, collisions, forces, and constraints
The Vigthoria Game Engine uses a powerful physics simulation system that handles gravity, collisions, forces, and constraints. Physics runs in real-time during Play mode, allowing realistic object interactions.
Physics simulation runs on the GPU when available, supporting hundreds of dynamic objects at 60+ FPS on modern hardware.
Makes an object respond to physics forces like gravity, collisions, and impulses. Required for any object that should move based on physics.
Defines the physical shape used for collision detection. An object needs a collider to interact with other physical objects.
Fast, simple rectangular
Fastest, perfect for balls
Ideal for characters
Exact shape, slowest
Connect objects together with physical joints that limit movement in specific ways.
Select your object → Inspector → Add Component → Physics → Rigidbody
Select your object → Inspector → Add Component → Physics → [Collider Type]
Click "Fit to Mesh" in the collider settings to automatically size the collider to match your object's mesh bounds.
Adjust mass, drag, and constraints based on how you want the object to behave.
Control physics through code for custom game mechanics:
// Apply force to move an object
rigidbody.AddForce(Vector3.forward * 10);
// Apply impulse (instant velocity change)
rigidbody.AddImpulse(Vector3.up * 5);
// Set velocity directly
rigidbody.velocity = new Vector3(0, 10, 0);
// Detect collisions
function onCollisionEnter(collision) {
console.log("Hit: " + collision.gameObject.name);
}