alice-teacher Room/objects collisions

Don Slater don at alice.org
Fri Mar 16 11:47:24 EDT 2018


Roger,
This is particularly difficult for the room as it does not have an easily ideifieablle sub-parts to detect when an object is about to collide with it.

One solution might be to place different shapes with an opacity of 0 near each of the walls, and then use the CollisionStartListener to listen for when the moving object approaches these invisible objects.

See the following links for more information:
	http://www.alice.org/resources/how-tos/setting-up-collision-detection/ <http://www.alice.org/resources/how-tos/setting-up-collision-detection/>
	http://www.alice.org/resources/how-tos/setting-up-proximity-detection/ <http://www.alice.org/resources/how-tos/setting-up-proximity-detection/>

Please let me know if you have any questions.

All the best,
Don Slater

Alice Project
> On Mar 16, 2018, at 11:02 AM, Crowe, Roger <rcrowe at greenville.k12.sc.us> wrote:
> 
> Hi,
> 
> When using environments like class rooms in worlds and creating user interactive programs, what is the best way to prevent a user driving a character or camera through a wall.  Is there collision control?  Thanks for suggestions and if you can attach files that would be great.
> 
> Thanks!
> Roger Crowe
> J L Mann HS
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu <mailto:alice-teachers at lists.andrew.cmu.edu>
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20180316/a07b39aa/attachment.html>


More information about the alice-teachers mailing list