Repository navigation
A3D_SetRotation
imshooter edited this page Oct 17, 2026
·
1 revision
Turn a physics object to a new rotation at once.
native bool:A3D_SetRotation(Physic:physicid, Float:rx, Float:ry, Float:rz);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to turn. |
Float:rx |
Rotation on the X axis. |
Float:ry |
Rotation on the Y axis. |
Float:rz |
Rotation on the Z axis. |
-
truewhen it was turned. -
falsewhenphysicidis not a physics object.
The rotation is that of SetObjectRot, in degrees. The object turns at once and players see it turned at once. The spin is kept and a moving object wakes up.
Stands a fallen crate upright again.
stock StandUp(Physic:crate) {
new
Float:rx,
Float:ry,
Float:rz
;
A3D_GetRotation(crate, rx, ry, rz);
A3D_SetRotation(crate, 0.0, 0.0, rz);
}- A3D_GetRotation: The rotation of a physics object, as an object rotation.
- A3D_SetPosition: Move a physics object to a new place at once.
- A3D_GetSurfaceRotation: Find the rotation that stands an object on a surface, such as a crate on a slope.
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