MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / do_collide_not_move

Function do_collide_not_move

ogsr_engine/xrGame/ActorCameraCollision.cpp:297–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297bool do_collide_not_move(const Fmatrix& xform, CPhysicsShellHolder* l_actor, CPhysicsShell* shell, CPhysicsElement* roote)
298{
299 ///////////////////////////////////////////////////////////////////
300 VERIFY(ph_world);
301 VERIFY(!ph_world->Processing());
302 cam_collided = false;
303 cam_step = false;
304 VERIFY(l_actor);
305 // VERIFY( l_actor->character_physics_support() );
306 // VERIFY( l_actor->character_physics_support()->movement() );
307 // l_actor->character_physics_support()->movement()->CollisionEnable( FALSE );
308 l_actor->MovementCollisionEnable(false);
309 shell->EnableCollision();
310 shell->CollideAll();
311 shell->DisableCollision();
312 // l_actor->character_physics_support()->movement()->CollisionEnable( TRUE );
313 l_actor->MovementCollisionEnable(true);
314 shell->Disable();
315 return cam_collided;
316}
317
318bool test_camera_box(const Fvector& box_size, const Fmatrix& xform, CPhysicsShellHolder* l_actor)
319{

Callers 1

test_camera_boxFunction · 0.85

Calls 5

EnableCollisionMethod · 0.80
CollideAllMethod · 0.80
DisableCollisionMethod · 0.80
DisableMethod · 0.45

Tested by 1

test_camera_boxFunction · 0.68