GIMPY73 Posted January 10, 2010 Share Posted January 10, 2010 Ok I'm trying to copy the Locker model , but using my AmmoBox instead. I've looked at how the Locker is setup , and have gone through the lua script(seem to understand it). The Locker is made up of 2 models "Locker and Locker_Door". So I made 2 models of my AmmoBox "Ammo_Box and Ammo_Box_Lid". The Ammo_Box is made up of Box and Hinge , the Ammo_Box_Lid is made up of Lid in Cinema4D. I can load it up in the editor fine , but if i shoot at the lid , it won't open??? I've re-named the various parts in the script to match my models , but still no luck. So what is the best way to setup a my model. Thanks Gimpy73 Quote http://www.fallingpixel.com/mac10-3d-model/26203 (MAC-10) http://www.fallingpixel.com/glock17-3d-model/26471 (Glock-17) http://www.youtube.com/user/MRGIMPY73 Link to comment Share on other sites More sharing options...
Niosop Posted January 10, 2010 Share Posted January 10, 2010 Well, the ammo box lid opens against gravity, so shooting it won't cause it to open. If you put the ammo box on it's side does shooting it help? Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
GIMPY73 Posted January 10, 2010 Author Share Posted January 10, 2010 No Niosop , i thought of that lol. I tried putting it on its side , but still the same. I think its the way the model is setup. I need to understand how the locker works from a modeling point of view. If i load the props_locker into Cinema4D , I get "01 and doorhinge". And if i load props_locker_door , I get "object". So i did the same for my ammobox: Ammo_Box = "Box and Hinge" and Ammo_Box_Lid = "Lid". So like the locker the main body of the ammobox is made up from 2 objects and the lid is 1 single object. Also the Hinge on my ammobox(just a cube) shows in the editor , but the one on the locker does not. Thanks Gimpy73 Quote http://www.fallingpixel.com/mac10-3d-model/26203 (MAC-10) http://www.fallingpixel.com/glock17-3d-model/26471 (Glock-17) http://www.youtube.com/user/MRGIMPY73 Link to comment Share on other sites More sharing options...
GIMPY73 Posted January 10, 2010 Author Share Posted January 10, 2010 Ok i kinda got it working. But then i had to re-adjust the position of the lid in Cinema4D to 0,0,0. Now it don't work again lol , the lid does'nt even show up now. Thanks Gimpy73 Quote http://www.fallingpixel.com/mac10-3d-model/26203 (MAC-10) http://www.fallingpixel.com/glock17-3d-model/26471 (Glock-17) http://www.youtube.com/user/MRGIMPY73 Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 10, 2010 Share Posted January 10, 2010 Perhaps it won't open because the joint from the locker is created at the Y axis. Try using self.joint = CreateJointHinge( self.model, self.door,self.door:GetPosition(1), Vec3(0,0,1) ) or self.joint = CreateJointHinge( self.model, self.door,self.door:GetPosition(1), Vec3(1,0,0) ) instead of self.joint = CreateJointHinge( self.model, self.door,self.door:GetPosition(1), Vec3(0,1,0) ) Quote Link to comment Share on other sites More sharing options...
GIMPY73 Posted January 10, 2010 Author Share Posted January 10, 2010 Thanks Aggror But ive done it YEEEEEEEEEEEEESSSSSS It does act a bit strange if the box is on its back tho, but still it works Thanks Gimpy73 Quote http://www.fallingpixel.com/mac10-3d-model/26203 (MAC-10) http://www.fallingpixel.com/glock17-3d-model/26471 (Glock-17) http://www.youtube.com/user/MRGIMPY73 Link to comment Share on other sites More sharing options...
Niosop Posted January 10, 2010 Share Posted January 10, 2010 This really underscores the need for a visual physics editor where you can build your own physics geometry out of supported primitives and add joints and constraints. I may take a stab at it sometime if nobody beats me to it. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
GIMPY73 Posted January 10, 2010 Author Share Posted January 10, 2010 Any help like that would be welcome Niosop , just go for it mate Thanks Gimpy73 Quote http://www.fallingpixel.com/mac10-3d-model/26203 (MAC-10) http://www.fallingpixel.com/glock17-3d-model/26471 (Glock-17) http://www.youtube.com/user/MRGIMPY73 Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 13, 2010 Share Posted January 13, 2010 This really underscores the need for a visual physics editor where you can build your own physics geometry out of supported primitives and add joints and constraints. I may take a stab at it sometime if nobody beats me to it. That would be handy Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.