Confused with event

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

Confused with event

Post by bapi »

I m begginer in game development.

I don't know how to do this - How can i know, when a cylinderical mesh reachs certain part of a plane mesh. That certain area of plan is textured in black and rest in white. The cylinderical mesh should be totally inside that blank area.

Pls. forgive me for my spelling mistake.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

well if i do it, i would create a point somewhere in the plane, and get the distance from the mesh.
if the distance < the range of the point - the cubes extend, then do that event.

useful functions:
vector3df::getDistanceFrom(vector3df);
aabbox3d<f32>::getExtent()
or aabbox3d<f32>::MaxEdge; // this isn't a function just a variable
ISceneNode::getBoundingBox()
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

Post by bapi »

Thank for ur reply.

Let me check it!
Post Reply