Physics optional
This commit is contained in:
@@ -78,18 +78,19 @@ Entity :: struct {
|
||||
renderable: Renderable;
|
||||
animator: Animator; @DontSerialize
|
||||
|
||||
// Physics
|
||||
physx_handle: PhysX_Handle;
|
||||
velocity: Vector3;
|
||||
#if PHYSICS {
|
||||
// Physics
|
||||
physx_handle: PhysX_Handle;
|
||||
velocity: Vector3;
|
||||
// End physics
|
||||
}
|
||||
|
||||
// End physics
|
||||
|
||||
#if NETWORKING {
|
||||
remote_id: Entity_Id; @DontSerialize
|
||||
client_id: Client_Id; @DontSerialize
|
||||
is_proxy: bool; @DontSerialize
|
||||
last_replication_time: float; @DontSerialize
|
||||
}
|
||||
#if NETWORKING {
|
||||
remote_id: Entity_Id; @DontSerialize
|
||||
client_id: Client_Id; @DontSerialize
|
||||
is_proxy: bool; @DontSerialize
|
||||
last_replication_time: float; @DontSerialize
|
||||
}
|
||||
|
||||
_locator: Bucket_Locator; @DontSerialize
|
||||
scene: *Scene; @DontSerialize
|
||||
|
||||
Reference in New Issue
Block a user