Repository navigation
A3D_IsMoving
imshooter edited this page Oct 17, 2026
·
1 revision
Whether a moving physics object is awake.
native bool:A3D_IsMoving(Physic:physicid);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to check. |
-
truewhen it moves. -
falsewhen it rests, orphysicidis not a moving physics object.
An object falls asleep when it has moved less than about three centimetres a second for half a second. A sleeping object costs nothing to simulate and sends nothing to players. A3D_OnStopped is called when it falls asleep.
A push, a new velocity, a hit by something awake or the removal of what it rests on wakes it again.
Waits for every ball of a table to stop before the next shot.
static Physic:gBalls[16];
stock bool:AreBallsResting() {
for (new i; i != sizeof (gBalls); ++i) {
if (A3D_IsMoving(gBalls[i])) {
return false;
}
}
return true;
}-
A3D_OnStopped: A moving physics object came to rest, or fell below
3dandreas.floorand was stopped there. - A3D_GetSpeed: The speed of a moving physics object.
3DAndreas 0.7.0 · 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