Search found 8 matches

by Cheeser12
Sun Oct 23, 2011 6:00 pm
Forum: Questions and Help
Topic: Getting Object Data From RayCasts
Replies: 6
Views: 5127

Re: Getting Object Data From RayCasts

Fixed it! :) The problem was that the ray I was casting had a tail that was actually past the door I was looking at. I had to set a displacement from the camera position because otherwise the ray was hitting the character's collision object from the inside. When I went through with breakpoints as yo...
by Cheeser12
Sun Oct 23, 2011 4:57 am
Forum: Questions and Help
Topic: Getting Object Data From RayCasts
Replies: 6
Views: 5127

Re: Getting Object Data From RayCasts

I separated the physics and graphics part of the box as you suggested. However, I'm still having problems accessing the tag. When I set the data for the tag to the Door itself: FrontDoor.PhysicsBox.CollisionInformation.Tag = FrontDoor; I'm not getting the correct data for a hit (I toggle whether the...
by Cheeser12
Fri Oct 21, 2011 2:37 am
Forum: Questions and Help
Topic: Getting Object Data From RayCasts
Replies: 6
Views: 5127

Re: Getting Object Data From RayCasts

Thanks so much for that informative post! :) It looks like I have some work to do then....I had my suspicions that combining the drawable box to the physical one was probably not the best idea. I'll separate those. And since they would be separated, that does make using the Tag property to store the...
by Cheeser12
Fri Oct 21, 2011 12:53 am
Forum: Questions and Help
Topic: Getting Object Data From RayCasts
Replies: 6
Views: 5127

Getting Object Data From RayCasts

Hi, I was wondering if anyone could give me some information about how to use the HitObject gained from a RayCast. My code looks like this so far: space.RayCast(new Ray(character.Camera.Position + character.Camera.Direction * 10f, character.Camera.Direction), 10f, out result); if (result.HitObject !...
by Cheeser12
Tue Sep 20, 2011 11:44 pm
Forum: Questions and Help
Topic: Can't Get Camera/SimpleCharacterController to Work
Replies: 6
Views: 6055

Re: Can't Get Camera/SimpleCharacterController to Work

Everything works great now, thanks a bunch! :D
by Cheeser12
Mon Sep 19, 2011 1:21 am
Forum: Questions and Help
Topic: Can't Get Camera/SimpleCharacterController to Work
Replies: 6
Views: 6055

Re: Can't Get Camera/SimpleCharacterController to Work

Ok got everything to build. I switched the demos to the SimpleCharacterController and they all worked fine. I guess it's something in my code, because when I add the controller to my space it doesn't seem to be affected by gravity (even when I set IsAffectedByGravity to true) and the movement direct...
by Cheeser12
Mon Sep 19, 2011 12:48 am
Forum: Questions and Help
Topic: Can't Get Camera/SimpleCharacterController to Work
Replies: 6
Views: 6055

Re: Can't Get Camera/SimpleCharacterController to Work

Thanks for the response, When I try to build the source code solution (which I'm guessing is how I'm supposed to modify the demos) I get an error that says that my installation of XNA Game Studio doesn't support WP7. I have 4.0 so I don't know why it's saying that....so I guess my question is do I n...
by Cheeser12
Sat Sep 17, 2011 10:25 pm
Forum: Questions and Help
Topic: Can't Get Camera/SimpleCharacterController to Work
Replies: 6
Views: 6055

Can't Get Camera/SimpleCharacterController to Work

Hi, I just started using BepuPhysics and I'm loving it so far. I was going to work on trying to make a character controller class, but then I saw there was one already in the demos so I've been trying to take advantage of it. I used the regular SimpleCharacterController class first, because I wanted...