Ovis_Entity_Animation_Enable()
Abstract
Starts showing the entity in 3D Network Visualizer.
Syntax
Ovis_Entity_Animation_Enable (ent_ptr)
| Argument | Type | Description |
|---|---|---|
ent_ptr |
OvisT_Entity * |
Entity |
Return Type
OvisT_Compcode
OvisC_Compcode_Success if the entity is valid; otherwise, OvisC_Compcode_Failure.
Header
ovis_entity.h
Details
This function adds the appropriate 3D object in the scene based on the name, aggregation mode, entity type, force ID, and dead reckoning information.
Note: This function has no effect on entities created as a result of discovering an RTI object created by another federate.
Example
OvisT_Entity * ent_ptr;
/* Associate the entity with a node instance and show it as a friendly Super Cobra */
OvisT_DIS_Type dis = { 1, 2, 225, 20, 2, 10, 0 };
ent_ptr = Ovis_Entity_From_Objid_Create (op_topo_parent (op_id_sefl ()), OPC_NIL,
OPC_NIL);
Ovis_Entity_Animation_Set (ent_ptr, OPC_NIL,
OvisC_Aggregation_Entity, dis, OvisC_DIS_Force_Friendly,
OvisC_DIS_DR_Static);
Ovis_Entity_Animation_Enable (ent_ptr);
Errors
- Entity is NIL.
Reference
- Use the function Ovis_Entity_Animation_Disable() to stop showing the entity in 3D Network Visualizer.