CodeBase - Simple Code to Extend Collision Range - DBPro

Return to the CodeBase listing

Category: Collision

Version: 1.0

0
0

Information

Uploaded: 12th Jan 2006 00:12

Modified: 12th Jan 2006 00:18

Author:  Virtual Nomad

Summary

some very basic code here to achieve 2 levels of collision for the same player' object.

Full Description

EXTENDED COLLISION by Virtual Nomad (jan. 11, 2006)<br /> some very basic code here to achieve 2 levels of collision for the same<br /> 'player' object.<br /> <br /> some notes for new programmers, like myself:<br /> <br /> the 'player' object (100) uses standard collision checks to keep it from<br /> passing through the 'obstacles' (cubes). i used the 2nd sphere (object 200)<br /> to check for collision at a range beyond the actual dimensions of the player,<br /> calling this 'extended collision'. in the example here, the player takes 'damage' when<br /> an obstacle is within the extended collision range of the player, as if standing too<br /> close to an intense heat source.<br /> <br /> again, i'm a new programmer, so i'm sure there are other more efficient ways to<br /> realize the concept here, but i do hope this helps other beginners visualize the<br /> idea.<br />

Comments

No comments yet.