Repository navigation
A3D_SetPosition
imshooter edited this page Oct 17, 2026
·
1 revision
Move a physics object to a new place at once.
native bool:A3D_SetPosition(Physic:physicid, Float:x, Float:y, Float:z);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to move. |
Float:x |
Position on the X axis. |
Float:y |
Position on the Y axis. |
Float:z |
Position on the Z axis. |
-
truewhen it was moved. -
falsewhenphysicidis not a physics object.
The object jumps to the new place and players see it there at once, without a move in between. Its velocity and spin are kept, so a ball put back on its spot keeps rolling unless A3D_SetVelocity stops it.
A moving object wakes up. A static object or a zone moves without waking what rests on it, so move them only where nothing rests.
Puts a ball back on its spot, still.
stock ResetBall(Physic:ball, Float:x, Float:y, Float:z) {
A3D_SetPosition(ball, x, y, z);
A3D_SetVelocity(ball, 0.0, 0.0, 0.0);
}- A3D_GetPosition: The position of a physics object.
- A3D_SetRotation: Turn a physics object to a new rotation at once.
- A3D_SetVelocity: Set the velocity of a moving physics object and wake it up.
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