Page 1 of 1
					
				Handling collision
				Posted: Mon Sep 18, 2017 10:57 pm
				by ApppStudio
				I am trapping the DetectingInitialCollision to check for a tag of CHECKPOINT for a racing game I am trying to do if its a checkpoint I want to setup a timer then ignore the collision so my entity can pass through it is there an easy way to do this? I can tell i have hit the object but my entity then wont travel through it
			 
			
					
				Re: Handling collision
				Posted: Mon Sep 18, 2017 11:49 pm
				by Norbo
				You can set the checkpoint object's personal collision rule to 
NoSolver. Contacts will be generated and events will fire, but the solver won't try to change any velocities.
Check out the 
CollisionFilteringDemo for more examples.
 
			
					
				Re: Handling collision
				Posted: Tue Dec 19, 2017 4:10 pm
				by Holness
				Hi Norbo, would you recommend the NoSolver option for a racing game or is there a better solution for this type of game?
			 
			
					
				Re: Handling collision
				Posted: Tue Dec 19, 2017 6:45 pm
				by Norbo
				One option would be to represent the track as a curve and project player positions onto that curve. That boils player position down to a single one dimensional parameter that you could check against checkpoint values easily, since it's just comparing two floats. Also, since you can compute that curve position every frame for every player, it gives you a simple way to compute what place the player is in.
This doesn't actually use anything in the physics engine, and it does require defining a curve for the track (and implementing the projection), but I suspect in the long run it would be simpler and more robust than using collision volumes.