Search found 30 matches

by limeh
Fri Jun 17, 2011 8:48 pm
Forum: Questions and Help
Topic: Static mesh and entity collision
Replies: 3
Views: 4379

Re: Static mesh and entity collision

Problem is i can't access the box because its dynamically created. So i can't assign the rule before the box is created. When i try to assign it at the box side, it can't access the mesh cause its a var and it can't be public
by limeh
Fri Jun 17, 2011 7:09 pm
Forum: Questions and Help
Topic: Static mesh and entity collision
Replies: 3
Views: 4379

Static mesh and entity collision

I have a static mesh but i dont want it to collide with a specific box. However, this box is dynamically created while the mesh is the level which loads from the start. I wan the static mesh to collide with other things but how do i make it not collide with the box?
by limeh
Wed Jun 01, 2011 9:51 pm
Forum: Questions and Help
Topic: Rotating bounding box
Replies: 10
Views: 9125

Re: Rotating bounding box

I tried assigning the orientation to be the same as the camera. However the rotation dont seem to be working. Is it because it is AABB ? I'm not sure how do i not use AABB ?
-edit-

Oh yeah i confirmed its AABB. Thus, i couldn't rotate in the y-axis. Are there other ways to do this?
by limeh
Wed Jun 01, 2011 9:44 pm
Forum: Questions and Help
Topic: Rotating bounding box
Replies: 10
Views: 9125

Re: Rotating bounding box

sorry but i've been trying to read up on matrices but i still dont get it. What kind of matrix does the orientationmatrix use? how to i set the forward right and up direction?
by limeh
Wed Jun 01, 2011 9:17 pm
Forum: Questions and Help
Topic: Rotating bounding box
Replies: 10
Views: 9125

Re: Rotating bounding box

I only need to set the rotation Y rather than all the other axis. When i try to do that, it says cannot implictly convert type Vector3 to Quaternion.

I have no idea how to use quaternion :/
by limeh
Wed Jun 01, 2011 8:20 pm
Forum: Questions and Help
Topic: Rotating bounding box
Replies: 10
Views: 9125

Re: Rotating bounding box

I created a box and attached an entity to it. Thus, the entity will take up the position of the box. However, the created box will not be facing the right way. I want to create a box right in front of the character. Like an ice wall. However, its orientated wrongly (the ice wall is a rectangle). How...
by limeh
Wed Jun 01, 2011 7:01 pm
Forum: Questions and Help
Topic: Rotating bounding box
Replies: 10
Views: 9125

Rotating bounding box

I wish to rotate a bounding box (not a simple character controller this time), how do i do that? I tried playing around with the .orientationmatrix but i dont quite get how to use it..
by limeh
Mon May 30, 2011 9:48 pm
Forum: Questions and Help
Topic: Inverse cylinder?
Replies: 6
Views: 5223

Re: Inverse cylinder?

you're right! I thought it was the setup that was wrong. It should have been mageDuel.Space. Thanks norbo! Its working great now!
by limeh
Mon May 30, 2011 9:29 pm
Forum: Questions and Help
Topic: Inverse cylinder?
Replies: 6
Views: 5223

Re: Inverse cylinder?

I'm trying distancelimit but i dont really know how to use it. My codes in my simple character controller go like this : var axisJoint = new DistanceLimit(Body, null, Body.Position, new Vector3(0, 0, 0), 0, 40); (game as mageDuel).Space.Add(axisJoint); It says null exception. Am i suppose to set som...
by limeh
Mon May 30, 2011 9:08 pm
Forum: Questions and Help
Topic: Inverse cylinder?
Replies: 6
Views: 5223

Re: Inverse cylinder?

are there any demos that include using distancelimit or linearaxislimits?
by limeh
Mon May 30, 2011 8:43 pm
Forum: Questions and Help
Topic: Inverse cylinder?
Replies: 6
Views: 5223

Inverse cylinder?

I wish to restrict the area my simplecharactercontroller can move about. The restricted area is circular so i can't just disable movement when x < limit. I thought of creating a cylinder but is it possible to make it use the insides of a cylinder instead? Now after creating the cylinder, the charact...
by limeh
Sun May 29, 2011 9:14 pm
Forum: Questions and Help
Topic: Simple character controller with skinned model
Replies: 23
Views: 17072

Re: Simple character controller with skinned model

I'm using this for changing of the length.. if (Mage.currentState == 15) { MageCollisionBox.Body.Length = 0.5F; } else { MageCollisionBox.Body.Length = 3.2F; } This works except that the body bounding box will end up rotating weirdly after the change of length happens. Using 2 different character co...
by limeh
Sun May 29, 2011 8:53 pm
Forum: Questions and Help
Topic: Simple character controller with skinned model
Replies: 23
Views: 17072

Re: Simple character controller with skinned model

How do i change the shape of the collision box as you have suggested? I tried changing the length but that causes certain problem on the simple character controller. Again, i'm trying to simulate the falling state.. Just need to reduce the height to a much smaller one
by limeh
Mon May 23, 2011 5:23 pm
Forum: Questions and Help
Topic: Collision rule with charactercontroller
Replies: 4
Views: 4405

Re: Collision rule with charactercontroller

oh sorry, now the character doesn't teleport up to the box. but the camera sort of zooms in right into the character as if being confined to the bounding box. Is that still something to do with the find support? -edit- I figured it out, it was the camera's problem cause its determined using raycast....
by limeh
Mon May 23, 2011 5:19 pm
Forum: Questions and Help
Topic: Collision rule with charactercontroller
Replies: 4
Views: 4405

Re: Collision rule with charactercontroller

would that be modifying this line ?
if (candidate.CollisionRules.Personal >= CollisionRule.NoSolver)

i'm not exactly sure how the find support works but my guess is to add another condition?