Repository navigation
A3D_GetMoveAngle
imshooter edited this page Oct 17, 2026
·
1 revision
The direction a moving physics object travels on the ground, as a facing angle.
native Float:A3D_GetMoveAngle(Physic:physicid);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to read. |
- The angle in degrees,
0.0to the north and growing to the west. -
0.0whenphysicidis not a moving physics object.
The angle follows the convention of GetPlayerFacingAngle: 0.0 to the north, 90.0 to the west, 180.0 to the south and 270.0 to the east. The vertical speed is left out. An object that moves straight up or down, or not at all, gives 0.0.
Turns a goalkeeper actor to face where the ball comes from.
stock FaceBall(actorid, Physic:ball) {
if (A3D_GetSpeed(ball) < 1.0) {
return;
}
SetActorFacingAngle(actorid, A3D_GetMoveAngle(ball) + 180.0);
}- A3D_GetVelocity: The velocity of a moving physics object.
- A3D_GetSpeed: The speed of a moving physics object.
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