Repository navigation
A3D_SetInterior
Move a physics object, a static object or a zone to another interior. A streamer object shown with it keeps its own interior.
native bool:A3D_SetInterior(Physic:physicid, interiorid);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to move. |
interiorid |
Interior, or -1 for every interior. |
-
truewhen it was moved. -
falsewhenphysicidis not a physics object.
An object of one interior collides with the bodies of that interior and with those of every interior, -1, in the same world. Each piece of the map keeps the interior the game gives it, so a box in interior 5 falls on the floors of interior 5 only. Actors and water have no interior and meet every one.
Two houses built on the same interior in two worlds never share bodies, and two interiors at the same place in one world do not either.
The interior decides collisions only. A streamer object given with A3D_AttachDynamicObject keeps its own interior, so set both.
A moving object wakes up when its interior changes.
stock MoveBallToPlayerInterior(Physic:ball, playerid) {
A3D_SetWorld(ball, GetPlayerVirtualWorld(playerid));
A3D_SetInterior(ball, GetPlayerInterior(playerid));
}- A3D_GetInterior: The interior of a physics object.
- A3D_SetWorld: Move a physics object, a static object or a zone to another virtual world.
- A3D_AttachDynamicObject: Show a moving physics object with a streamer object instead of a global object.
3DAndreas 0.7.6 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Physics objects
- Model settings
- World queries
- The screen
- Routes
- Navigation mesh
- Map database
- Other components
- Coming from ColAndreas
- Performance
Reference
Functions