1. Check material names passed to the physics engine (for collision sensors.)

Consider:
gameobj->getClientInfo()->m_auxilary_info = (matname ? (void*)(matname+2) : NULL);
It works if matname is "MAblah", but not if matname is "".

2. Added constructor for struct RAS_CameraData.
3. Added initializers to the struct KX_ClientObjectInfo constructor
4. Collision sensors won't detect near sensors.
5. A stack of minor tweaks, adjusting whitespace, using ++it for stl stuff.
This commit is contained in:
2004-04-11 02:50:02 +00:00
parent d3e88eae71
commit ae9233a5b0
25 changed files with 170 additions and 333 deletions

View File

@@ -37,6 +37,15 @@ struct RAS_CameraData
float m_lens;
float m_clipstart;
float m_clipend;
bool m_perspective;
RAS_CameraData(float lens = 35., float clipstart = 0.1, float clipend = 100., bool perspective = true) :
m_lens(lens),
m_clipstart(clipstart),
m_clipend(clipend),
m_perspective(perspective)
{
}
};
#endif //__RAS_CAMERADATA_H