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.

Newcomers DBPro Corner / rotating objects

Author
Message
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 10th Oct 2006 00:29
i am trying to have the cylinder follow the cube. but when cube turns i need for the cylinder to turn with it. being new to dark basic i have no idea what to do. I tried rotate object but that didn't work.


really any help would be appriciated

if con is the opposite of pro, than is congress the opposite of progress?
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 10th Oct 2006 03:32
I had the same problem a while back! Here's my solution:

POINT OBJECT.

It will make an object face a point. In this case, you can make this point be the cube's position.

Ummm...
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 10th Oct 2006 04:01
so what exactly is the code snippet i need to use. i have


i tried fidling around with it but i can't make the cylnder lay flat now. so what is the exact operation i need to use
once again suggestions are welcome

if con is the opposite of pro, than is congress the opposite of progress?
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 10th Oct 2006 05:34
not sure if my previous post was deleted but what would be the exact code for this point object. i have
but i can't get it to be positioned the way i want it like a field of vision. do i need to use the angles because all it does is move up and down. Some serious help is needed for this noob.

if con is the opposite of pro, than is congress the opposite of progress?
First Person Shooters
18
Years of Service
User Offline
Joined: 23rd Apr 2006
Location: UK
Posted: 10th Oct 2006 12:21
dude did you not think to look at the examples what came with the game itself? in DBP you get the roomdemo example which is editable.

check it out, it has in there about object movement and rotation, also if that dont help check some of the other examples out.

(1)create something new, (2)update that something new to make it more enjoyable and look nicer, (3)when bored of that idea repeat (1)
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 11th Oct 2006 00:34
first of all i don't have dbp, sorry for the confusion, otherwise i would of used the object intersect command, and i have looked at some tutorials and examples and looked on the forums and stuff and can't really find anything. all i need is the correct code for this but i guess i'll keep looking at examples

if con is the opposite of pro, than is congress the opposite of progress?
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 11th Oct 2006 02:46
so is what i'm trying to do nearly impossible? Should i just draw a line inbetween two point? And can you have and object collision with a limb? If so what would be code?

if con is the opposite of pro, than is congress the opposite of progress?
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 11th Oct 2006 04:49
*edit*

okay i know i'm getting annyoing but in my new redone code i need to put a box or cylider around my object but it won't turn when i need it to. Here's the code.....i'm sure its just some simple mistake so maybe someone could help


if con is the opposite of pro, than is congress the opposite of progress?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Oct 2006 07:15
which object number are you trying to turn out of the 4.

Dark Physics makes any hot drink go cold.
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 12th Oct 2006 02:34
object number 9998 so it moves with the limb so i can detect collision with it

if con is the opposite of pro, than is congress the opposite of progress?
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 12th Oct 2006 02:38
Earlier:

if you want it to lay flat then just make it point at its own Y position.


As for your current issue, try GLUE OBJECT TO LIMB.

Ummm...
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 12th Oct 2006 02:50
but if i glue the object to limb i won't be able to detect the collision between the objects.

if con is the opposite of pro, than is congress the opposite of progress?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Oct 2006 12:29
is this what you are trying to do.


Dark Physics makes any hot drink go cold.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Oct 2006 16:19
@HowDo

Add one more line after

set object collision to spheres 2

this:

set object collision to boxes 1

otherwise the "bat" just passes through the ball

Enjoy your day.
Nenohum
18
Years of Service
User Offline
Joined: 21st Sep 2006
Location: In a galaxy far, far, away.....
Posted: 13th Oct 2006 00:18
wow, thanks that's exactly what i was trying to do.

if con is the opposite of pro, than is congress the opposite of progress?

Login to post a reply

Server time is: 2024-11-26 09:48:19
Your offset time is: 2024-11-26 09:48:19