Repository navigation
A3D_GetObjectID
imshooter edited this page Oct 18, 2026
·
2 revisions
The global object that shows a physics object.
native A3D_GetObjectID(Physic:physicid);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to read. |
- The object.
-
INVALID_OBJECT_IDwhen it shows none, orphysicidis not a physics object.
Only a moving object created with a model has a global object. Static objects, zones, objects created with the model -1 and objects given to a streamer object return INVALID_OBJECT_ID.
The component moves the object. Changing its material, its text or its camera collision is safe, moving it is not, since the next update puts it back.
Keeps the camera from bumping into balls.
stock Physic:CreateBall(Float:x, Float:y, Float:z) {
new Physic:ball = A3D_CreateSphere(1598, 0.3, x, y, z, 0.5);
SetObjectNoCameraCol(A3D_GetObjectID(ball));
return ball;
}- A3D_AttachDynamicObject: Show a moving physics object with a streamer object instead of a global object.
-
A3D_CreateObject: Create a moving physics object shaped like the collision of a model, or as
models.jsondescribes the model.
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