Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / [ Dark Dynamix ] - Shoot Bulet

Author
Message
Arbrakan
13
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 5th Jan 2013 16:11
Hi guys, I don't understand how to shoot a bullet correctly with Dark Dynamix for a FPS. I am lost with sin, and cos.

I have played with the demo Cloth from Dark Dynamix,and read (http://forum.thegamecreators.com/?m=forum_view&t=197384&b=30) where is a shotting system. But Can't shoot in every angle, front the camera.




Thanks for the halp !

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Jan 2013 19:10
Sorry not able to contribute here, but just tagging in before I run out, hopefully someone will have an answer before I get back...

Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 5th Jan 2013 23:41
Try matching the bullet rotation and position to that of the gun/player and then apply a local force along the positive z axis, I think that should work but have not tested.

Arbrakan
13
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 6th Jan 2013 02:28
Thanks for the replies guys !
Ok with your help,now it work,Thanks Matty H !



Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 6th Jan 2013 12:09
Glad that worked, I don't know why I didn't do it like that in the cloth example

You should no longer need to calculate the zForce based on any angles, a set power will always be the same no matter which way the bullet is facing since you are applying the force locally.

Login to post a reply

Server time is: 2024-04-25 00:58:33
Your offset time is: 2024-04-25 00:58:33