Apologies in advance - but I am finally embarking on my first ever attempt at a 3D game, and have fallen at virtually the first hurdle!
I am creating an early mockup of what will eventually be a train game and am using cubes scaled into rectangles as crude trains so that I can code 'train selection with mouse click' via CameraPick.
I have searched the forums and code archives relating to EntityBox and ScaleEntity and am a little confused as to whether the two commands can be used successfully with a cube which has been stretched into a rectangle? I am able to create and scale uniform cubes and their EntityBoxes without problems (after which CameraPick works accurately every time), but if I create a rectangle using:
CameraPick no longer works properly. Am I being a muppet and doing something stupid?
The online manual entry for EntityBox has additional information which says "the space the entity resides in should be scaled uniformly. EntityBox will not work as you might expect in non-uniform scaled space". Does this mean I cannot use EntityBox for rectangular collision detection, and if so how can I achieve this?
Any help would be gratefully appreciated!
I am creating an early mockup of what will eventually be a train game and am using cubes scaled into rectangles as crude trains so that I can code 'train selection with mouse click' via CameraPick.
I have searched the forums and code archives relating to EntityBox and ScaleEntity and am a little confused as to whether the two commands can be used successfully with a cube which has been stretched into a rectangle? I am able to create and scale uniform cubes and their EntityBoxes without problems (after which CameraPick works accurately every time), but if I create a rectangle using:
train=CreateCube() ScaleEntity train,1,2,1 EntityBox train,-1,-1,-1,2,4,2 EntityPickMode train,3
CameraPick no longer works properly. Am I being a muppet and doing something stupid?
The online manual entry for EntityBox has additional information which says "the space the entity resides in should be scaled uniformly. EntityBox will not work as you might expect in non-uniform scaled space". Does this mean I cannot use EntityBox for rectangular collision detection, and if so how can I achieve this?
Any help would be gratefully appreciated!