Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,789 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Help me, & I'll help you!! HELP PLEASE!! :) #9026
05/12/02 12:58
05/12/02 12:58
Joined: May 2002
Posts: 490
Colorado, USA
The Glome Offline OP
Senior Member
The Glome  Offline OP
Senior Member

Joined: May 2002
Posts: 490
Colorado, USA
Hey guys! FYI, "Glome_Expert" = just plain "Glome," for those of you who know me.
As for this post, I have a few questions for the people above me on the "A5 ladder". Also, if anyone lower on the ladder (no offense!!) has a question, I will answer it for them here. Anyway, here are my questions!

1. I would like to have an entity always retain the pan/tilt/roll of a different entity at a distance. Example:

I want the camera to always look at an entity.
so, I put in a while loop to always set its .pan to the entities'. However, this is what happened:

/ /

The two slashes represent the camera & the entity. The right slash is the camera. as you can see, it has the same pan angle, but is looking in a different direction. (I need a Vector Guru)!! [Smile] Help me out!

2.

A good gravity/movement script.

This is pretty self-explanatory.
NO TEMPLATES PLEASE!!

3.
How the hell do I use trace? [Mad]

4.
what the heck do all these trigonometric functions do? Explain 'em please!

5.
Jumping, and sliding down slope.

6.
Climbing up stairs!!

Once again, please don't tell me to "read the manual!" Also, no TEMPLATES please!
Any help would be appreciated. Then you can ask me any question you might have.

Glome [Smile] [Smile] [Smile]


Heart attacks: God's revenge for eating his animal friends "In the future, everybody will be famous for 15 minutes." - Andy Warhol www.theglome.deviantart.com
Re: Help me, & I'll help you!! HELP PLEASE!! :) #9027
05/12/02 13:38
05/12/02 13:38
Joined: Jan 2002
Posts: 644
USA
tesanders Offline
Developer
tesanders  Offline
Developer

Joined: Jan 2002
Posts: 644
USA
quote:
1. I would like to have an entity always retain the pan/tilt/roll of a different entity at a distance. Example:

I want the camera to always look at an entity.

I think you may be referring to two different things here. Consider that your target entity might be spinning around graduallt. The source entity (the one looking at the target) would have a constant pan, even though the target's pan changed.

If I'm understanding you right, try:

code:
vec_set(temp, target_entity.x);
vec_sub(temp, my.x);
vec_to_angle(my.pan, temp);

Where 'target_entity' is a pointer to the looked-at entity, and 'my' is the one doing the looking.

=thomas

Re: Help me, & I'll help you!! HELP PLEASE!! :) #9028
05/13/02 04:03
05/13/02 04:03

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Like the other person said you are trying to do more than one thing at once.

If you are matching the entites pan/tilt/roll then the camera will always be looking at the entity from a certain angle (eg/ behind it always).

If however all you want is the camera to always look at the entity while it rotates and moves then the code is different.

Which of these did you mean?

Re: Help me, & I'll help you!! HELP PLEASE!! :) #9029
05/13/02 04:03
05/13/02 04:03

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hi Glome,
I think I can solve most of your questions, but you will have to do a little digging on your own....
There is a new vehicle package available on both Realspawn's Newbie site, and the Acknex Resource site. It comes with two script files, one for vehicle movement, and one for five different camera views. I'm not sure what you mean by "no templates", but both of these are designed to be "templates", even though they do not use skills or flags.
The package includes eleven documentation files. The doc file on the camera script goes into some detail about how to accomplish what you want, why you are seeing the problem you are, and how the trig instructions work. Best of all, you can pull the camera script out, and use it with other scripts, including the overhead view and the view with "auto zoom" built in.
Also includes gravity and movement script, as well as tilting, leaning, ramp jumping, rock back and on-screen HUD displays.

Should keep you busy for a little while....
Please let me know if you have any problems with it, and thanks for offer to answer any questions!
[Smile]

Re: Help me, & I'll help you!! HELP PLEASE!! :) #9030
05/16/02 04:37
05/16/02 04:37
Joined: May 2002
Posts: 490
Colorado, USA
The Glome Offline OP
Senior Member
The Glome  Offline OP
Senior Member

Joined: May 2002
Posts: 490
Colorado, USA
I always want the camera to be behind the entity & also have it move when the player tilts up & down! I am making a combat flight sim & I need a good 3rd person camera. Also, how can I make the jet I have shoot bullets/missiles & blow up when it hits some terrain?

Glome [Big Grin]


Heart attacks: God's revenge for eating his animal friends "In the future, everybody will be famous for 15 minutes." - Andy Warhol www.theglome.deviantart.com

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1