}
}
- ent_gate *gate =
- world_intersect_gates( world, localplayer.rb.co, w->state.prev_pos );
- if( gate ){
+ u32 id = world_intersect_gates(world, localplayer.rb.co, w->state.prev_pos);
+ if( id ){
+ ent_gate *gate = mdl_arritm( &world->ent_gate, mdl_entity_id_id(id) );
m4x3_mulv( gate->transport, localplayer.rb.co, localplayer.rb.co );
m3x3_mulv( gate->transport, localplayer.rb.v, localplayer.rb.v );
q_mul( transport_rotation, localplayer.rb.q, localplayer.rb.q );
rb_update_transform( &localplayer.rb );
- player__pass_gate( gate );
+ player__pass_gate( id );
}
rb_update_transform( &localplayer.rb );
}
w->state.outro_start_time = 0.0;
}
+static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){
+ struct player_walk_animator *animator = data;
+ bitpack_bytes( ctx, sizeof(*animator), animator );
+}
#endif /* PLAYER_DEVICE_WALK_H */