Repository navigation
A3D_SetCollisionSpeed
imshooter edited this page Oct 17, 2026
·
1 revision
Set the slowest impact of a moving physics object that calls A3D_OnCollided.
native bool:A3D_SetCollisionSpeed(Physic:physicid, Float:speed);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to change. |
Float:speed |
Speed in metres per second. Starts at 3dandreas.collision_speed. |
-
truewhen the speed was set. -
falsewhenphysicidis not a moving physics object, orspeedis negative.
The speed of an impact is the speed at which both bodies approach each other along the line of the contact. A ball that rolls on the ground has an impact speed near zero, and one that falls on it has its falling speed. 0.0 calls A3D_OnCollided for every new contact in which the bodies move towards each other.
Reports only the hard hits of a wrecking ball.
stock Physic:CreateWreckingBall(Float:x, Float:y, Float:z) {
new Physic:ball = A3D_CreateSphere(-1, 1.0, x, y, z, 500.0);
A3D_SetCollisionSpeed(ball, 4.0);
return ball;
}- A3D_OnCollided: A moving physics object hit something faster than its collision speed.
- A3D_SetCollisions: Choose what a moving physics object collides with.
3DAndreas 0.7.1 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Physics objects
- Model settings
- World queries
- The screen
- Routes
- Navigation mesh
- Map database
- Coming from ColAndreas
- Performance
Reference
Functions