Skip to main content
gamedev.net
🔒 Locked

Collision Detection Function

Started by DrPowers Apr 23, 2004 at 1:13 PM 3 replies 300+ views
Original Post
DrPowers
DrPowers
What does the void* refer to in the function: void Game :: Response(CollisionRecord& rkRecord0, int iT0, CollisionRecord& rkRecord1, int iT1, void* ); This is a static function that handles a collision where the CollisionRecord 1 and 2 are the objects that collided and the ints are the triangles that first collided. I dont know what the last void* even means.
DrPowers
DrPowers
sorry I meant to say what void* means in general

I think it means a generic pointer of a type that you need to cast to a different type.

Maybe i wasnt clear enough
CodeMunkie
CodeMunkie
quote:
I think it means a generic pointer of a type that you need to cast to a different type.


Bingo.
"When you die, if you get a choice between going to regular heaven or pie heaven, choose pie heaven. It might be a trick, but if it's not, mmmmmmm, boy."
How to Ask Questions the Smart Way.
ironfroggy
ironfroggy
Or, a generic pointer type to which you cast from a specific type.
(http://www.ironfroggy.com/)(http://www.ironfroggy.com/pinch)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.