Repository navigation
A3D_GetPosition
imshooter edited this page Oct 17, 2026
·
1 revision
The position of a physics object.
native bool:A3D_GetPosition(Physic:physicid, &Float:x, &Float:y, &Float:z);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to read. |
&Float:x |
Position on the X axis. |
&Float:y |
Position on the Y axis. |
&Float:z |
Position on the Z axis. |
-
truewhen the position was written. -
falsewhenphysicidis not a physics object.
The position of a sphere or a box is its centre. The position of an object shaped like a model is the origin of the model, the same place an object of that model would be created at.
stock Float:GetObjectDistance(playerid, Physic:physicid) {
new
Float:x,
Float:y,
Float:z
;
if (!A3D_GetPosition(physicid, x, y, z)) {
return -1.0;
}
return GetPlayerDistanceFromPoint(playerid, x, y, z);
}- A3D_SetPosition: Move a physics object to a new place at once.
- A3D_GetRotation: The rotation of a physics object, as an object rotation.
- A3D_GetVelocity: The velocity 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